How do I change the "browser" name and version presented to the target web
server when I use file() or fopen()?  E.g.

$content = file('');

The access_log for the web server will show something like: - - [29/Aug/2002:00:08:59 -0700] "GET /foo.html HTTP/1.0" 404 45
"-" "PHP/4.2.2"

I want to change "PHP/4.2.2" to something like "Mozilla/4.0 (compatible;
MSIE 5.01; Windows NT)".

I looked in php.ini but couldn't find a setting for this.  Anyone know where
to set this?  Thanks.


PHP General Mailing List (
To unsubscribe, visit:

Reply via email to