ID: 10865
Updated by: derick
Reported By: [EMAIL PROTECTED]
Status: Open
Bug Type: Feature/Change Request
Operating system: 
PHP Version: 4.0.5
Assigned To: 
Comments:

Having a new highlevel function won't solve the problem that you need to use it before 
any output.
That's because there need to be set a header (hence the name of the function) to the 
outputstream. That header must be send before any data.

You can however use the outputbuffering functions of PHP to use header in the middle 
of a page,
see the functions at www.php.net/ob_start, ob_get_contents etc.

I'm closing this report as this function would not add new
functionality to PHP.

Derick

Previous Comments:
---------------------------------------------------------------------------

[2001-05-14 20:33:55] [EMAIL PROTECTED]
I can understand why header() has to appear before any text or HTML, but it's not 
always feasible (especially when using include/require).  So I'd like to have a means 
other than header() to switch to a new page using PHP.  header() seems like a 
particularly low-level way to do this anyway; I'd like to have a high-level function 
that does the same thing without explicitly messing with headers.  If there already is 
such a function, then this becomes a documentation enhancement request: could you add 
a note to the header() documentation pointing people to the other function?

I should mention, btw, that I'm new to PHP, but liking it quite a bit so far.  Thanks 
for providing such a great language, and such extensive documentation for it!

--jed

---------------------------------------------------------------------------



ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=10865&edit=2


-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to