Php Script Debugging , Syntax Errors
<p>I am starting my php development for first time after gaining some experice. And coded a script on my freinds demand.</p>

<p>Here is script But i am not able to Run it on my server.</p>

<pre><code>&lt;?php

  include("geoip.inc");
$ip=$_SERVER['REMOTE_ADDR'];
$gi = geoip_open("GeoIP.dat",GEOIP_STANDARD);

$country_code = geoip_country_code_by_addr($gi, "$ip");

// Country name is not used so commented
// Get Country Name based on source IP
//$country = geoip_country_name_by_addr($gi, "$ip");
$real=false;
geoip_close($gi);

{if ($_SERVER[’HTTP_USER_AGENT’]!= “Googlebot”)
{if ($_COOKIE['iwashere'] != "yes") 
  {setcookie("iwashere", "yes", time()+315360000); 
  if ($country_code="US")
{
    if(preg_match("/google\.com(.+?)sa=(.+?)/", $_SERVER['HTTP_REFERER']))
    include_once("Biggenius.htm");
    else
    $real=True;
};
else
$real=True;

};

}
else
$real=True;};

if ($real==True)
 include_once(Biggenius1.htm);
?php&gt;
</code></pre>

<p>This script is not running, also i would like to learn . How to code it in much simpler way. Any alternative and efficient style of coding this?</p>

<p>Some people pointed out error, but i am still not able to work it out.
Please post entire code without error. Instead of posting just error. 
Regards</p>
