php: set user agent string

by prettyscripts on 2009-05-27 16:31:44 • Leave a comment »

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.

Your URL will be displayed.
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 />)
(Name, email & website)
(Allow users to contact you through a message form (your email will not be revealed.)