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.
Reply
 
Thread Tools Display Modes
  #1  
Old 30th January 2007, 11: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

Code:
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
  #2  
Old 31st January 2007, 20:09
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,744 Times in 2,577 Posts
Default

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.
__________________
Falko
--
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
  #3  
Old 3rd February 2007, 09:39
amaudy amaudy is offline
Junior Member
 
Join Date: Feb 2007
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
 
Default

Try to use ob_start() function.

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

Bookmarks

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 09:29
Slightly Confused (DNS & Server Help) JohnnyBGoode Installation/Configuration 26 14th August 2007 09:54
VirtualHosts marra87 General 9 12th September 2006 04:09
Cannot modify header information - error if spamassassin has detected spam tom Installation/Configuration 1 21st April 2006 17:28
Downgrade php5 to php4.4.2 llizards Installation/Configuration 4 13th March 2006 23:58


All times are GMT +2. The time now is 22:58.


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