Current location: Hot Scripts Forums » Programming Languages » PHP » Warning: Cannot modify header information - headers already sent by


Warning: Cannot modify header information - headers already sent by

Reply
  #1 (permalink)  
Old 07-09-05, 01:30 AM
netbakers's Avatar
netbakers netbakers is offline
Newbie Coder
 
Join Date: Dec 2004
Posts: 71
Thanks: 0
Thanked 0 Times in 0 Posts
Warning: Cannot modify header information - headers already sent by

hi,

i got this error when i execute my login script :
PHP Code:

WarningCannot modify header information headers already sent by (output started at /home/webwayou/public_html/hr/siteadmin/_login.php:4in /home/netbake/public_html/jobs/siteadmin/_login.php on line 84 

what is this and how to solve this problem........?
__________________
---------------------------------------------------------

info@netbakers.com

http://www.netbakers.com/
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #2 (permalink)  
Old 07-09-05, 01:55 AM
rswfire rswfire is offline
New Member
 
Join Date: Jul 2005
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
It means that you are outputting something to the browser after the headers have already been sent.

Example:

echo "this is a string";
header("...");
// will result in the error you mentioned

If you're not aware of anything being sent to the browser, it is likely whitespace. Make sure there is no whitespace before your <? code.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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 Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
cannot modify header kalinchuk PHP 13 06-02-05 02:18 AM
An unknown warning Slypher PHP 1 02-12-05 04:24 AM
very strange functions issue jolac PHP 3 05-13-04 02:54 AM


All times are GMT -5. The time now is 10:56 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.