PHP Error

unserialize() [<a href='function.unserialize'>function.unserialize</a>]: Error at offset 0 of 172 bytes

D:\InetPub\worldwide.zikbay.com\protected\extensions\EGeoIP.php(229)

217             $ch = curl_init();
218             curl_setopt($ch, CURLOPT_URL, $host);
219             curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
220             curl_setopt($ch, CURLOPT_USERAGENT, 'EGeoIP Yii Extension Class v1.0');
221             $response = curl_exec($ch);
222             curl_close ($ch);
223             
224         } else if ( ini_get('allow_url_fopen') ) {
225             
226             $response = file_get_contents($host, 'r');
227         }
228         
229         return unserialize($response);
230     }
231 
232 }

Stack Trace

#1
+
 D:\InetPub\worldwide.zikbay.com\protected\extensions\EGeoIP.php(229): unserialize("<html> <head><title>403 Forbidden</title></head> <body bgcolor...")
224         } else if ( ini_get('allow_url_fopen') ) {
225             
226             $response = file_get_contents($host, 'r');
227         }
228         
229         return unserialize($response);
230     }
231 
232 }
#2
+
 D:\InetPub\worldwide.zikbay.com\protected\extensions\EGeoIP.php(63): EGeoIP->fetch("http://www.geoplugin.net/php.gp?ip=74.125.182.39&base_currency=U...")
58         if( null === $ip ) $ip = $_SERVER['REMOTE_ADDR'];
59         
60         $host = str_replace('{IP}',$ip, $this->_service);
61         $host = str_replace('{CURRENCY}', $this->_currency, $host );
62         
63         $response = $this->fetch($host);
64         
65         if(!is_null( $response) && is_array($response))
66         {
67             $this->_data->mergeWith($response);
68             $this->_data->add('ip',$ip);
#3
+
 D:\InetPub\worldwide.zikbay.com\protected\controllers\SiteController.php(42): EGeoIP->locate()
37             }
38         }
39         else
40         {    //No cookie setup, trace the location based on the IP
41             $geoIp = new EGeoIP();
42             $geoIp->locate(); // Can put ip as argument for testing
43             
44             switch ($geoIp->countryCode)
45             {
46                 case "TH":
47                     //set cookie and redirect
2013-01-07 10:42:22 Microsoft-IIS/7.5 Yii Framework/1.1.7