Bug #10865 Updated: function other than header() to switch to a new page?

From: Date: Tue, 15 May 2001 06:19:32 +0000
Subject: Bug #10865 Updated: function other than header() to switch to a new page?
Groups: php.dev 
Request: Send a blank email to php-dev+get-55295@lists.php.net to get a copy of this message
ID: 10865 Updated by: derick Reported By: logos@kith.org Old-Status: Open Status: Closed Bug Type: Feature/Change Request Operating system: PHP Version: 4.0.5 Assigned To: Comments: status: closed Previous Comments: --------------------------------------------------------------------------- [2001-05-15 02:18:50] derick@php.net 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 --------------------------------------------------------------------------- [2001-05-14 20:33:55] logos@kith.org 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

« previous php.dev (#55295) next »