Re: Re: How do I get PHP's User-Agent?

From: Date: Wed, 11 Jul 2001 23:51:45 +0000
Subject: Re: Re: How do I get PHP's User-Agent?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-57512@lists.php.net to get a copy of this message
No... that would give you your own browser (say Netscape or IE). He wants what PHP uses... On my system it's: PHP/4.0.4pl1 See http://www.adhesivemedia.com/~philip/bar.php which is just "phpinfo();" and http://www.adhesivemedia.com/~philip/foo.php which is just "readfile('http://www/~philip/bar.php');" So it looks like it's "PHP/" followed by your version. -philip On Wed, 11 Jul 2001, Francis Fillion wrote: > Just that: $HTTP_USER_AGENT > > > > Philip Hallstrom wrote: > > > > You could have PHP open a URL that contained the phpinfo(); function and > > then just look through that... > > > > -philip > > > > On Wed, 11 Jul 2001, Nathan wrote: > > > > > I need to create an authentication hash based on the user agent, to > > > connect to a server but I need PHP?s User Agent, which is usually > > > something like PHP/4.0.X. Is there a variable or way to get this? Thank > > > you. > > > > > > > -- > > PHP General Mailing List (http://www.php.net/) > > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > > For additional commands, e-mail: php-general-help@lists.php.net > > To contact the list administrators, e-mail: php-list-admin@lists.php.net > > -- > Francis Fillion, BAA SI > Broadcasting live from his linux box. > And the maintainer of http://www.windplanet.com >

« previous php.general (#57512) next »