Re: browser detection

From: Date: Wed, 26 Sep 2001 00:29:51 +0000
Subject: Re: browser detection
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-68797@lists.php.net to get a copy of this message
print "$HTTP_USER_AGENT"; will print the browser the person is using. Tyler Longren Captain Jack Communications tyler@captainjack.com www.captainjack.com ----- Original Message ----- From: "wm" <wm@blanktv.com> To: <php-general@lists.php.net> Sent: Tuesday, September 25, 2001 5:54 PM Subject: [PHP] browser detection > hi all, > > anybody know the function for browser detection? > > what i want to do is set a variable $spacerheight to a value dependent > upon whether the user is on a mac or a pc. > > then i can say height=<? echo "$spacerheight"; ?> in the html. > > i tried using javascript a few diff ways with this and it didn't work. > > so, if anybody knows that function or if there is another way, please > let > me know. > > thanks. > > > -- > 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 >

« previous php.general (#68797) next »