Jump to content
php.lv forumi

Node no longer exists in


cucumber

Recommended Posts

Neizmantoju ne xml, ne klases, bet php met ara sho kludu

 

Warning: session_start() [function.session-start]: Node no longer exists in C:\index.php on line 2

un shito

Cannot send session cache limiter - headers already sent

 

index.php

<?php

session_start();

...

 

 

 

kas varbut par vainu?

Link to comment
Share on other sites

Cik saprotu to var parbaudit hex'a atveros failu ja ir sakuma EFBBBF == tad ir BOM,

manejam gan izkatas sakums 3C3F7068700D0A73657373696F6E5F73746172742829

Link to comment
Share on other sites

Atklaju ieprieksh uz servera izmantoju

 

$xml = simplexml_load_string();

$_SESSION['xml'] = $xml->x -> x;

 

kas taisa

 

SimpleXMLElementObject, kursh sav kart gluko izmantojot sessiju un session_start(), vienkarshi bez session_start() izdzesu visu kas bija $_S['xml'a'] un

atradu solveri

$_SESSION['xml'] = (string) $xml->x -> x;

 

viss aizgaja

Link to comment
Share on other sites

to: bubu

 

SimpleXML, protams, tas tieshi tas ari ir, tikai es rakstiju sakuma izmantoju vinu, tad nokeru to kludu, un izdzesu lauka to dalu kur bija tas!

 

Jo SimpleXMLElementObject , es pat iedomaties navareju ka, tas var sabojat sessiju.

Link to comment
Share on other sites

×
×
  • Create New...