Re: newbie question, sorry
| From: | R a n d y S e s s e r | Date: | Sun, 13 Aug 2000 18:59:02 +0000 |
| Subject: | Re: newbie question, sorry | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-11523@lists.php.net to get a copy of this message | ||
try this...
if ($ua->browser == "Netscape" && $ua->version < 5 ) {
_________________________________________
r a n d y || s e s s e r
http://www.troikawebdesign.com
> From: dusty351@hotmail.com ("Dusty Cohen")
> Newsgroups: php.general
> Date: 13 Aug 2000 08:18:34 -0700
> Subject: [PHP] newbie question, sorry
>
> I'm trying to use the script:
>
> <?php
> $ua = get_browser ();
> if ( ( $ua->browser == "Netscape" ) && ( $ua->version < 5 ) ) {
> // code to fix the page for netscape :)
> }
> ?>
>
> which I plucked right out of the documentation on php.net. But all I
> succeed in recieving is:
>
> Warning: $ua is not an object in header.txt on line 9
>
> where line 9 is the line with the if command. I am using php3. Any ideas?
> Thanks.
>
> ________________________________________________________________________
> Get Your Private, Free E-mail from MSN Hotmail at
> http://www.hotmail.com
>
>
> --
> 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
>