Results 1 to 4 of 4

Thread: Changing PHP's USER_AGENT

  1. #1
    matthewralston
    Guest

    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?

  2. #2
    scoutt
    Guest
    so you want to change the log file? or what. I am not sure you can and why would it give you that?

  3. #3
    matthewralston
    Guest

    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.

  4. #4
    scoutt
    Guest
    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
  •  



Click Here to Expand Forum to Full Width