the error is:
Parse error: parse error, unexpected '\"' in /hsphere/local/home/bruceg/inspired-evolution.com/Browser_Identification.php on line 39
and the page is question is at:
http://www.inspired-evolution.com/Brows ... cation.php
the code is as following:
Code: Select all
<?php $viewer = getenv ( "HTTP_USER_Agent" );
$Browser ="an unidentified browser";
if (preg_match( "/MSIE/i", "$viewer" ) )
{$browser="Internet Explorer"; }
else if (preg_match( "Netscape/i", $viewer" ) )
{$browser="Netscape"; }
else if (preg_match( "/Opera/i", $viewer" ) )
{$browser="Opera"; }
else if (preg_match( "/Mozilla/i", $viewer" ) )
{$browser="Mozilla"; }
else if (preg_match( "/Firefox/i", $viewer" ) )
{$browser="Firefox"; }
else if (preg_match( "/Mozilla/i", $viewer" ) )
{$browser="Mozilla"; }
$platform = "an unidentified operating system" ;
if ( preg_match( "/Windows/i", "$viewer" ) )
{ $platform="windows"; }
else if(preg_match( "/Macintosh/i" , "$viewer" ) )
{ $platform ="Macintosh"; }
echo ( "<p>You're using $browser on $platform</p>" );
?>thx,