PDA

View Full Version : PHP - Cannot modify header information


shankhar
30th January 2007, 11:19
Hi all,
when i run the script the following warning is shown, i dono how to rectify it, please help me

Warning: Cannot modify header information - headers already sent by (output started at /var/www/tuition/index.php:135) in /var/www/tuition/login.php on line 43


i heard that this is a whitespace error and have to remove whitespaces, i had removed but still gets the error.

thanx in advance

falko
31st January 2007, 20:09
It means that there is some output (this can also be whitespace, a tab, a linebreak, etc.) before your header function.
It seems the output is generated in line 135 of /var/www/tuition/index.php.

amaudy
3rd February 2007, 09:39
Try to use ob_start() function.

http://www.php.net/ob_start for more information.