地址;
http://www.site.com/page?Channel=CNNi
ChannelDatas.php
ChannelDatas.php 包含(在)_VideoPanel.php
$CNNi_JSON = 'http://edition.cnn.com/CNNI/schedules/json/CSI.NA.html';
“_VideoPanel.php”中的代码
74 <?php
75 $DosyaJson = $var = $_GET['Channel'] . '_JSON'; print($$var);
76 $html = file_get_contents($DosyaJson);
....
?>
我收到这样的错误:
http://edition.cnn.com/CNNI/schedules/json/CSI.NA.html
Warning: file_get_contents() [function.file-get-contents]: Filename cannot be empty in /****/_VideoPanel.php on line 76
Warning: Invalid argument supplied for foreach() in /****/_VideoPanel.php on line 87
我在 $DosyaJson 中犯了一个错误 - 错误在哪里?
图形经验:
ps:
$var = $_GET['Channel'] . '_JSON'; print($$var);