nekonesaprotu Posted January 20, 2009 Report Share Posted January 20, 2009 Warning: Cannot modify header information - headers already sent by (output started at .....forums\foruma_saturs.php:77) in .....\kastes_saturs.php on line 49 cik es sapratu vaina ir jāmeklē faila foruma_saturs.php 77 rindā? Lasīju, ka parasti šāds errors veidojas, ja tur kaut kur ir balta atstarpe, bet tā rindiņa izskatās šādi: echo "<td width='350px'><p class='teksts'>{$dati['virsraksts']}</p></td><td style='text-align:center;background-color:#666666'><p class='teksts'>{$lietot_dati['lietotajvards']}</p></td><td style='text-align:center;background-color:#5E5E5E;width:120px;'><p class='teksts'>{$dati['laiks']}</p></td>"; Link to comment Share on other sites More sharing options...
xmas12 Posted January 20, 2009 Report Share Posted January 20, 2009 Warning: Cannot modify header information - headers already sent by (output started at .....forums\foruma_saturs.php:77) in .....\kastes_saturs.php on line 49 cik es sapratu vaina ir jāmeklē faila foruma_saturs.php 77 rindā? Lasīju, ka parasti šāds errors veidojas, ja tur kaut kur ir balta atstarpe, bet tā rindiņa izskatās šādi: echo "<td width='350px'><p class='teksts'>{$dati['virsraksts']}</p></td><td style='text-align:center;background-color:#666666'><p class='teksts'>{$lietot_dati['lietotajvards']}</p></td><td style='text-align:center;background-color:#5E5E5E;width:120px;'><p class='teksts'>{$dati['laiks']}</p></td>"; Nee tev ir jaskatas .....\kastes_saturs.php saja faila un 49 rindaa! nemaaki lasiit? Varbut tad kautkas ietu ja izlabotu to eroru taja 49 rinda! Link to comment Share on other sites More sharing options...
marcis Posted January 20, 2009 Report Share Posted January 20, 2009 nekonesaprotu, nevajag obligāti "baltu atstarpi", pietiks ar jebkuru simbolu, kas tiek output'ots (jā, arī echo, print, utt). Problēma pārrunāta 500 un vairāk reižu. xmas12, kastes_saturs.php 49. rindā sūta header'i, nevis sāk output'u dot. Link to comment Share on other sites More sharing options...
nekonesaprotu Posted January 21, 2009 Author Report Share Posted January 21, 2009 tad hedera mainīšanas kodam ir jābūt pirms jebkāda html koda? Link to comment Share on other sites More sharing options...
marcis Posted January 22, 2009 Report Share Posted January 22, 2009 Gandrīz pareizi saprati. Link to comment Share on other sites More sharing options...
mounkuls Posted January 22, 2009 Report Share Posted January 22, 2009 tad hedera mainīšanas kodam ir jābūt pirms jebkāda html koda? Pirms jebkādas izvades. Link to comment Share on other sites More sharing options...
nekonesaprotu Posted January 22, 2009 Author Report Share Posted January 22, 2009 nu jā tā es arī biju domājis :) Link to comment Share on other sites More sharing options...
Recommended Posts