hello. you can use the $HTTP_USER_AGENT variable
for that. for example:
$spacerheight = 2; // default
if (strstr($HTTP_USER_AGENT, "Mac")) {
$spacerheight += 4;
}
hope that helps.
--- wm <[EMAIL PROTECTED]> wrote:
> 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:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> To contact the list administrators, e-mail:
> [EMAIL PROTECTED]
>
__________________________________________________
Do You Yahoo!?
Get email alerts & NEW webcam video instant messaging with Yahoo! Messenger.
http://im.yahoo.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]