|
-
Jul 11th, 2002, 02:21 PM
#1
Changing PHP's USER_AGENT
After requesting a HTTP URL with the fopen function, the web server's log files show the USER_AGENT that PHP supplied as "PHP/4.0.6". I want to change this (on the fly in code if possible). Simple question:
How?
-
Jul 11th, 2002, 05:11 PM
#2
so you want to change the log file? or what. I am not sure you can and why would it give you that?
-
Jul 12th, 2002, 04:59 AM
#3
No no no...
When a web browser requests a webpage it sends the name of the browser (the USER_AGENT) along with the request. When PHP requests a webpage from a web server it sends a USER_AGENT like "PHP/4.0.6". I want to change the USER_AGENT string that PHP sends to the webserver.
-
Jul 12th, 2002, 07:22 AM
#4
what code are you using? I'ver never seen that. actually just the way it sounds is that you can't. but I want to look at it though
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|