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: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
> --
> Francis Fillion, BAA SI
> Broadcasting live from his linux box.
> And the maintainer of http://www.windplanet.com
>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]