header()
| From: | Taylor York | Date: | Tue, 09 Jul 2002 15:54:09 +0000 |
| Subject: | header() | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-106379@lists.php.net to get a copy of this message | ||
I'm trying to change some information in the header...lets say that User
Agent for example...but it just wont change.
putenv() will change the User Agent..but nothing else will
<?
$ua = "Mozilla/4.0 (compatible;)";
header("User-Agent: $ua\n", TRUE);
header("Accept: */*", TRUE);
//putenv("HTTP_USER_AGENT=$ua");
echo "\n<br>user agent: ";
echo getenv("HTTP_USER_AGENT");
?>
Suggestions?