RE: [PHP] Transfer control from one PHP file to another PHP file

From: Date: Sun, 30 Jul 2000 20:17:48 +0000
Subject: RE: [PHP] Transfer control from one PHP file to another PHP file
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-9036@lists.php.net to get a copy of this message
The one possibility that I can consider is this: If you want it to sometimes display a page, and othertimes just output a Header() to a new page.. Upgrade to PHP4. PHP4 supports Output Buffering. That means, that you can put a header() anywhere without worrying about previous output. If your code executes that header function, the header will be sent before any other output is sent regardless of it's actual location in the code. Hope this helps. John

« previous php.general (#9036) next »