PHP notice

Undefined variable: file

/var/www/sites571/data/www/gigafootball.net/protected/controllers/TransfersController.php(47)

35            if(!$fp) echo"$errstr ($errno)<br />\n";
36            else{
37            $headers = "GET $path HTTP/1.0\r\n";
38            $headers .= "Host: $host\r\n";
39            $headers .= "Accept: text/html, application/xml;q=0.9, application/xhtml+xml, image/png, image/jpeg, image/gif, image/x-xbitmap, */*;q=0.1\r\n";
40            $headers .= "Accept-Charset: iso-8859-1, utf-8, utf-16, *;q=0.1\r\n";
41            $headers .= "Accept-Language: ru-RU,ru;q=0.9,en;q=0.8\r\n";
42            $headers .= "User-Agent: Opera/9.22 (Windows NT 5.1; U; ru)\r\n";
43            $headers .= "Cache-Control: no-cache\r\n";
44            $headers .= "Referer: http://$host/\r\n";
45            $headers .= "Connection: Close\r\n\r\n";
46            fwrite($fp,$headers);
47            while($file != "\r\n") $file = fgets($fp,128);
48            $file = "";
49            while(!feof($fp)) $file .= fgets($fp,4096);
50            fclose($fp);
51            }
52 
53 
54 
55            $file=preg_replace('/<\!DOCTYPE html(.*?)<table id=\"transferZoneTable\">/si','<table>',$file);
56 
57 
58            $file=preg_replace('/<div id=\"tableRowStorageWrapper\">(.*?)<\/html>/si','',$file);
59 

Stack Trace

#7
+
 /var/www/sites571/data/www/gigafootball.net/index.php(15): CApplication->run()
10 defined('YII_DEBUG') or define('YII_DEBUG',true);
11 // specify how many levels of call stack should be shown in each log message
12 defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL',3);
13 
14 require_once($yii);
15 Yii::createWebApplication($config)->run();
2024-03-19 05:19:59 Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips mod_fcgid/2.3.9 PHP/5.4.16 Yii Framework/1.1.13