You are here: Re: Basic question about incuding files and funcitons « PHP Programming Language « IT news, forums, messages
Re: Basic question about incuding files and funcitons

Posted by Geoff Muldoon on 11/24/57 11:28

jimclay@netzero.net says...
> Interesting the bad word filter seems to be working, but now the program
> will not refresh the screen. I get this message:
>
> Warning: Cannot modify header information - headers already sent by (output
> started at /home/songc1/public_html/guestmap/badwords.php:36) in
> /home/songc1/public_html/guestmap/guestmap_place.php on line 75
>
> I believe line 75 must refer to this line of code:
>
> //go back to the map
> header('Location: '.$_SERVER['HTTP_REFERER']);
>
> I'm not sure what to do.

The line
header('Location: '.$_SERVER['HTTP_REFERER']);
is trying to set the header information AFTER
/home/songc1/public_html/guestmap/badwords.php:36
has already set the header information, by:
(a) issuing a print or echo statement
or
(b) containing some white space that the browser is rendering as output

The more common problem is (b)

Best way to check is to call badwords.php directly into a browser, and see
if you get any (even blank) output rather than a "document contains no
data" message.

Geoff M

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация