abc.php 代码如下
<?php error_reporting(0);
header ('Content-Type: text/json');
$key=$_GET['key'];
$handle = fopen ("https://www.xxx.xxx/proxy/list/download/$key/-/socks/port/direct/", "rb");
$contents = "";
do {
$data = fread($handle, 1024);
if (strlen($data) == 0) {
break;
}
$contents.= $data;
} while(true);
fclose ($handle);
echo $contents;
打开后返回2种结果看下列, 图1 , 图2
需要abc.php里面怎么写判断返回结果是 图2 就显示为空白 或者 就显示错误
返回是 图1 属于正常显示不理会让他正常显示