note 4472 modified in header by ronabop
| From: | ronabop@php.net | Date: | Sun, 01 Oct 2000 06:54:48 +0000 |
| Subject: | note 4472 modified in header by ronabop | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-5757@lists.php.net to get a copy of this message | ||
Here's a feature which you might want to be aware of, which has just cost me a lot of time:
I tend to use the define()/2 function like C pre-processor #defines. However, if you use this
function to define HTTP headers, they get interpreted immediately! Here's an example:
define( "ARTICLE_MANAGEMENT", "Location: http://" .
HOST . "/php/f1rumors/article_management.php3" );
At the top of my script causes an automatic redirection to article_management.php3 without ever
calling header()/1. Be aware.
http://www.php.net/manual/function.header.php