bracka Posted February 15, 2007 Report Share Posted February 15, 2007 (edited) Tikai lūdzu nesakiet ka esmu stulbs utt. Kad grib pievienot komentu nospiežu "pievienot" un tad man parādas ka header alredy sent.. lūdzu palīdzat! KODS ŠEIT Edited February 15, 2007 by bracka Link to comment Share on other sites More sharing options...
Val Posted February 15, 2007 Report Share Posted February 15, 2007 Remember that header() must be called before any actual output is sent, either by normal HTML tags, blank lines in a file, or from PHP. It is a very common error to read code with include(), or require(), functions, or another file access function, and have spaces or empty lines that are output before header() is called. The same problem exists when using a single PHP/HTML file. Link to comment Share on other sites More sharing options...
andrisp Posted February 15, 2007 Report Share Posted February 15, 2007 1) paste.php.lv 2) Headers already sent nozimē, ka tu centies browserim aizsūtīt headeri pēc tam, kad kaut kas jau ir nosūtīts browserim (ar domu - teksts), Pārbaudi vai tā gadijumā nav. Ja nav, tad ja tu izmanto utf-8 kā faila enkodingu, tad pārbaudi vai tev faila sākumā nav maģiskais BOM simbols. Pagūglē pēc "utf bom". Link to comment Share on other sites More sharing options...
bracka Posted February 15, 2007 Author Report Share Posted February 15, 2007 (edited) ok paldies! (pa stulbu mani neviens nenosauca! :D) es kļūdu izlaboju bet tagat e-clubā kad pievienoju komentāru man rāda ka netiek klāt raksti.txt (kur tiek saglabāti raksti). ecluba vaina vai arī koda vaina? localhostā man vis strādā! :/ Edited February 15, 2007 by bracka Link to comment Share on other sites More sharing options...
hackerman Posted February 15, 2007 Report Share Posted February 15, 2007 apskaties vai chmod ir pareizi uzlikts uz faila raxti.txt :) Link to comment Share on other sites More sharing options...
bracka Posted February 15, 2007 Author Report Share Posted February 15, 2007 ir pareizs! bet ja man localhostā iet td tā ir tikai ecluba vaina, ne? Link to comment Share on other sites More sharing options...
andrisp Posted February 15, 2007 Report Share Posted February 15, 2007 Kā ari iesaku, kad meklē palīdzību šeit, iekopēt pilnu kļūdas paziņojumu, nevis rakstīt "mana saka, ka netiek klāt". Link to comment Share on other sites More sharing options...
bracka Posted February 15, 2007 Author Report Share Posted February 15, 2007 (edited) tagat rāda: Warning: fopen(raksti.txt): failed to open stream: Permission denied in /home2/msm.eclub.lv/public_html/gbook.php on line 31 Warning: fputs(): supplied argument is not a valid stream resource in /home2/msm.eclub.lv/public_html/gbook.php on line 31 Warning: Cannot modify header information - headers already sent by (output started at /home2/msm.eclub.lv/public_html/augsa.php:5) in /home2/msm.eclub.lv/public_html/gbook.php on line 32 P.S. http://localhst rāda tikai: Warning: Cannot modify header information - headers already sent by (output started at C:\wamp\www\jaunalapa\augsa.php:5) in C:\wamp\www\jaunalapa\gbook.php on line 32 Edited February 15, 2007 by bracka Link to comment Share on other sites More sharing options...
andrisp Posted February 15, 2007 Report Share Posted February 15, 2007 Nu izskatās, ka tev nav tiesības rakstīt šo failu, kā jau hackerman teica. A moška tas eclub vispār neļauj fopen izmantot ? Tu caur ftp liki virsū tos failus ? Ja jā, tad paņem kādu ftp klientu, kas ļauj mainīt failiem atribūtus (konkrētāk - pieejas tiesības) un uzliec tam text failam tādus atribūtus, ka visi var rakstīt. Link to comment Share on other sites More sharing options...
bracka Posted February 15, 2007 Author Report Share Posted February 15, 2007 (edited) nezinu kap�#8220;c bet man vinkārši ftp nestrādā. eclubam ir kautkāds ZARRA FTP kuru arī izmantoju! bet kāds nevar ar to header palīdz�#8220;t? (Cannot modify header information - headers already sent by (output started at /home2/msm.eclub.lv/public_html/augsa.php:5) in /home2/msm.eclub.lv/public_html/gbook.php on line 32) ______________________________________ nomainiju pieejas tiesības un tagat tikai ir viena problēma: Warning: Cannot modify header information - headers already sent by (output started at /home2/msm.eclub.lv/public_html/augsa.php:5) in /home2/msm.eclub.lv/public_html/gbook.php on line 32 Edited February 15, 2007 by bracka Link to comment Share on other sites More sharing options...
andrisp Posted February 15, 2007 Report Share Posted February 15, 2007 Es jau tev pateicu, kur problēma ar tiem headeriem. Kaut ko nesaprati ? Un kā tad tu dabūji tos failus uz eclub, ja neizmanto ftp ? Link to comment Share on other sites More sharing options...
Val Posted February 15, 2007 Report Share Posted February 15, 2007 man domāt, ka eclub'am ir kautkāda upload forma no weba ar pričendāļiem Link to comment Share on other sites More sharing options...
rpr Posted February 15, 2007 Report Share Posted February 15, 2007 stulbs tu esi :D angļu valodu pirms tam vajag apgūt, vismaz vārdnīcai putekļus no vākiem noslaucīt... Link to comment Share on other sites More sharing options...
bracka Posted February 16, 2007 Author Report Share Posted February 16, 2007 beidzot arī kāds pa stulbu nosauca :D angļu valodu zinu!! vārdnīcu nevajag! tikai php nezinu tik labi lai saprastu par to header! Link to comment Share on other sites More sharing options...
waplet Posted February 20, 2007 Report Share Posted February 20, 2007 taa jau viss iet bet nevaru dabut nost liiniju http://flweb.oo.lv/bla/bla.php Link to comment Share on other sites More sharing options...
Recommended Posts