spa Posted May 25, 2006 Report Share Posted May 25, 2006 Sveicinaati speciaalisti, es taa kaa pilniigs iesaaceejs nevaru saprast kur man ir kljuuda. atradu paraugu login scriptam, bet kad meegjinu ielogoties, izmet pazinjojumu: "Warning: Cannot modify header information - headers already sent by", kodu ieliku sheit, jo it kaa tajaa kodaa esot kljuuda http://paste.php.lv/3807 Jau ieprieksh liels paldies Link to comment Share on other sites More sharing options...
Vebers Posted May 25, 2006 Report Share Posted May 25, 2006 Dati jau izsūtīti pirms session_start(); Iepsējams , ka vainīgi maģiskie UTF-8 3 simboli. Link to comment Share on other sites More sharing options...
v3rb0 Posted May 25, 2006 Report Share Posted May 25, 2006 iesācējs vai ne, bet gūgle ir tavs draugs. pamēģini parasīt šai "Warning: Cannot modify header information - headers already sent by" Link to comment Share on other sites More sharing options...
SkyD Posted May 25, 2006 Report Share Posted May 25, 2006 Šitā jabūt: Failā pašā augšā. <? session_start(); // Sākam sessiju ?> Link to comment Share on other sites More sharing options...
spa Posted May 25, 2006 Author Report Share Posted May 25, 2006 man raadaas, ka kljuuda ir 41 rindaa. Skatiijos Googlee, bet iisti neizprotu kljuudas buutiibu. MakaTaNaw tas ieksh datu baazes tie simboli vainiigi? SkyD pameegjinaaju kaa ieteici, nekas nemainas. varbuut kaadam ir veel kaadi ieteikumi? Link to comment Share on other sites More sharing options...
goldy Posted May 25, 2006 Report Share Posted May 25, 2006 tev taču rakska ka notiek kaut kāda izvade prims tu sāc sesiju Link to comment Share on other sites More sharing options...
Blitz Posted May 25, 2006 Report Share Posted May 25, 2006 tu nevari aizsutit header ja tev jau kautkas ir izvadits uz browsera... tai 40taa rindaa tu megini sutit hederi, bet acimredzot kautkas jau ir izvadits (taa login forma)... Link to comment Share on other sites More sharing options...
SkyD Posted May 25, 2006 Report Share Posted May 25, 2006 Ja tev ir tā: index.php: <? echo 'bla bla, te kautkaads PHP skripts..utt.'; include("lapa.php"); ?> lapa.php <? session_start(); echo 'bla, blaa..'; ?> Tas neder. Ir jabūt šitā: index.php: <? session_start(); echo 'bla bla, te kautkaads PHP skripts..utt.'; include("lapa.php"); ?> Ceru, ka saprati. Link to comment Share on other sites More sharing options...
GedroX Posted May 25, 2006 Report Share Posted May 25, 2006 Ideālākais ir izmantot ob_*() funkcijas. Link to comment Share on other sites More sharing options...
spa Posted May 25, 2006 Author Report Share Posted May 25, 2006 Man nav skaidrs iisti kaadeelj kaut kas tiek izvadiits pirms. tajaa error messagaa ir veel arii mineets kaut kas ar to incluudoto db.php. Warning: Cannot modify header information - headers already sent by (output started at ...\db.php:2) in ...\check_user.php on line 40 bet tas ir muljkjiigi, jo db.php, piesleedzas datu baazei. SkyD es iisti neiebraucu, tad iesaki nonjemt session_start(); pameegjinaaju paraadas errors ka kaut kas nav kaartiibaa ar sesijas variabliem. GedroX kas taas par funkcijaam? Link to comment Share on other sites More sharing options...
Blitz Posted May 25, 2006 Report Share Posted May 25, 2006 nu atd apskaties vai db.php pirms <? ?> nav kada tuksa rinda, vai kas tads... Fakts ir tads ka, tev kautkas jau ir izsutits uz browseri... Link to comment Share on other sites More sharing options...
spa Posted May 25, 2006 Author Report Share Posted May 25, 2006 Liels paldies Blitz, to es nebiju pamaniijis, ak neveriibas kljuudas. Link to comment Share on other sites More sharing options...
Blitz Posted May 25, 2006 Report Share Posted May 25, 2006 muzu dzivo, muzu macies... :) Link to comment Share on other sites More sharing options...
andrisp Posted May 25, 2006 Report Share Posted May 25, 2006 Ideālākais ir izmantot ob_*() funkcijas. Vēl vienkāršāk (ideālāk?) ir vienkārši ieslēgt php.ini failā output_buffering uz On. Link to comment Share on other sites More sharing options...
Recommended Posts