bubu Posted October 30, 2008 Report Share Posted October 30, 2008 galaxy.php skriptā tev pirmā rinda nav tukša, t.i vai tā atrodās pirms <?php sākuma? Un arī - vai esi pārbaudījis, vai galaxy.php fails nesatur BOM headera baitus? Link to comment Share on other sites More sharing options...
-=HELLBENDER=- Posted October 30, 2008 Author Report Share Posted October 30, 2008 Ieliku to līniju, bet vēljoporjām errors... Warning: Cannot modify header information - headers already sent by (output started at C:\AppServ\www\server1\galaxy.php:2) in C:\AppServ\www\server1\includes\functions\CheckCookies.php on line 56 Un jā, esmu parliecināts ka tur nau bomi, jo encoding ir UTF-8 without BOM un tikko arī caur notepad++ pārkonvertēju uz to pašu Link to comment Share on other sites More sharing options...
bubu Posted October 30, 2008 Report Share Posted October 30, 2008 Doh, nevis jāliek tukša rinda, bet jāņem ārā. Iedod to savu galaxy.php failu. Tik neliec to paste.php.lv, bet iedot pilnībā downloadējamu. Link to comment Share on other sites More sharing options...
-=HELLBENDER=- Posted October 31, 2008 Author Report Share Posted October 31, 2008 http://yy.lv/upload/index.php?ACT=4&f=182220&ext=RAR pievienoju arī checkcookies.php Link to comment Share on other sites More sharing options...
bubu Posted October 31, 2008 Report Share Posted October 31, 2008 Tu laikam nelasi, ko tev raksta.. Es tak teicu izvākt tukšās rindas faila sākumā. Tev abos failos ir pa tukšai rindai faila sākumā. Unikodes BOM baiti gan tev nav, tos mācēji novākt pats. Link to comment Share on other sites More sharing options...
-=HELLBENDER=- Posted October 31, 2008 Author Report Share Posted October 31, 2008 Īsti nesapratu par kādām tukšām līnijām tu tur runā... šīs? <?php function CheckCookies ( $IsUserChecked ) { ....... Ja tā, tad kļūda vēl aizvien ir :( Warning: Cannot modify header information - headers already sent by (output started at C:\AppServ\www\server1\galaxy.php:2) in C:\AppServ\www\server1\includes\functions\CheckCookies.php on line 43 Link to comment Share on other sites More sharing options...
andrisp Posted October 31, 2008 Report Share Posted October 31, 2008 -=HELLBENDER=-, tu tiešām nesaproti ?! Tev ir jāizvāc tukšā rinda no skripta sākuma. Link to comment Share on other sites More sharing options...
-=HELLBENDER=- Posted October 31, 2008 Author Report Share Posted October 31, 2008 Kāda tukšā rinda?!?! Lūdzu parādi piemēru <.< Link to comment Share on other sites More sharing options...
bubu Posted October 31, 2008 Report Share Posted October 31, 2008 ak dies... Jātaisa bilde. Citādi šķiet bezjēdzīgi kautko skaidrot. Tas, kas iezīmēts ar sarkanu, tas jāvāc ārā. Link to comment Share on other sites More sharing options...
-=HELLBENDER=- Posted October 31, 2008 Author Report Share Posted October 31, 2008 (edited) Liels paldies :) Es vnk meklēju tajā CheckCookies.php failā to rindu bet viņa jau bija nodzēsta... Vnk neiedomājos par galaxy.php EDIT: Tgd līdzīga situācija, bet man pirmajā rindā stāv html scripts... <html><META HTTP-EQUIV="Refresh" CONTENT="0; URL=adrese..."></html> <?php (...........) ja novieto viņu beigās, viņš vairs nestrādā... Edited October 31, 2008 by -=HELLBENDER=- Link to comment Share on other sites More sharing options...
bubu Posted October 31, 2008 Report Share Posted October 31, 2008 Nepareizi tu kodu izkārto. PHP skriptam sākumā vajag izdomāt ko darīt - izvadīt šitādu vai tādu output. Un tikai tad HTML kodu izvadi. <?php if (blabla) { blabla2 } else { blalba 3} ... echo "īstais HTML kods" // vai tikpat labi: ?> <īstais html kods> <?php // skripts turpinās vēl ?> Izkārot nosacījumus skripta sākumā - tas mans if (blabla) ... Link to comment Share on other sites More sharing options...
-=HELLBENDER=- Posted October 31, 2008 Author Report Share Posted October 31, 2008 Paldies :) Link to comment Share on other sites More sharing options...
Recommended Posts