note 4472 deleted from function.header by jimw

From: Date: Wed, 31 Oct 2001 21:22:45 +0000
Subject: note 4472 deleted from function.header by jimw
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-19731@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.

« previous php.notes (#19731) next »