note 10221 added to include
| From: | lbstoldt at hotmail dot com | Date: | Wed, 20 Dec 2000 02:20:40 +0000 |
| Subject: | note 10221 added to include | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-8933@lists.php.net to get a copy of this message | ||
I've noticed using include() seems to send header information, preventing me from using, say...
header ("Location: http://www.mp3collective.net");
later on, however if I use the head("Location.... before the include, the script will finish
executing, then the header will take affect (in this case forwarding the user to the page). However
this is problematic when I want to decide later on in my code where I want to forward the user.
http://www.php.net/manual/function.include.php