Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Programming/Scripts

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Thread Tools Display Modes
Old 30th January 2007, 12:19
shankhar shankhar is offline
Junior Member
Join Date: Jan 2007
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default PHP - Cannot modify header information

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
Reply With Quote
Sponsored Links
Old 31st January 2007, 21:09
falko falko is offline
Super Moderator
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,752 Times in 2,582 Posts

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.
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
Old 3rd February 2007, 10:39
amaudy amaudy is offline
Junior Member
Join Date: Feb 2007
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts

Try to use ob_start() function.

http://www.php.net/ob_start for more information.
PHP e books
Reply With Quote


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Freebsd 6.1 support misterm Installation/Configuration 10 9th April 2009 10:29
Slightly Confused (DNS & Server Help) JohnnyBGoode Installation/Configuration 26 14th August 2007 10:54
VirtualHosts marra87 General 9 12th September 2006 05:09
Cannot modify header information - error if spamassassin has detected spam tom Installation/Configuration 1 21st April 2006 18:28
Downgrade php5 to php4.4.2 llizards Installation/Configuration 4 14th March 2006 00:58

All times are GMT +2. The time now is 06:40.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.