newbie question, sorry
| From: | Dusty Cohen | Date: | Sun, 13 Aug 2000 15:18:31 +0000 |
| Subject: | newbie question, sorry | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-11518@lists.php.net to get a copy of this message | ||
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