Cannot modify header information.Headers already sent

Reply

Join Date: Dec 2006
Posts: 34
Reputation: php_coder is an unknown quantity at this point 
Solved Threads: 0
php_coder php_coder is offline Offline
Light Poster

Re: Cannot modify header information.Headers already sent

 
0
  #11
Jun 4th, 2007
Hiii
ob_start -- Turn on output buffering
That means no output is sent from the script except from the headers. Instead it's stored in the internal buffer.

Originally Posted by Pro2000 View Post
Peace, Could I know what is the function ob__start(); ?
Thanks.
Best regards.
Reply With Quote Quick reply to this message  
Join Date: Sep 2005
Posts: 1,075
Reputation: digital-ether is just really nice digital-ether is just really nice digital-ether is just really nice digital-ether is just really nice 
Solved Threads: 66
Moderator
digital-ether's Avatar
digital-ether digital-ether is offline Offline
Veteran Poster

Re: Cannot modify header information.Headers already sent

 
0
  #12
Jun 4th, 2007
Originally Posted by Pro2000 View Post
Peace, Could I know what is the function ob__start(); ?
Thanks.
Best regards.
Heres the reference at php.net: http://www.php.net/ob_start

ob_start() is part of the output control functions in PHP. See: http://www.php.net/manual/en/ref.outcontrol.php

Calling ob_start() begins the buffer of output that is normally sent to HTTP (with PHP on a webserver).

Do to the HTTP specification, you cannot send any HTTP Headers after you have sent some HTTP Content. ob_start() allows you to have the HTTP Content placed in a buffer, so that you can send HTTP headers at any time. Then at the end of your PHP script, call ob_end_flush() which will flush the HTTP Content.

Edit: Looks like php_coder got to your question first.
Last edited by digital-ether; Jun 4th, 2007 at 11:29 am.
www.fijiwebdesign.com - web design and development and fun
Cpanel Email - Let users Register email accounts on your website upon registration
Ajax Chat - Fully browser based chat!
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC