php: set user agent string

by prettyscripts on 2009-05-27 16:31:44

miscphp

do it with ini_set():

PHP:

ini_set('user_agent''myagent/1.0');

Tags: php, user agent

No feedback yet

Leave a comment


Your email address will not be revealed on this site.
PoorExcellent
note: all comments are moderated. do not spam and do not advertise. only comments relevant to the post will be published.
(Line breaks become <br />)
(For my next comment on this site)
(Allow users to contact me through a message form -- Your email will not be revealed!)