用fsockopen来实现的,很简单,不过就是有点慢,!
#[测试fsockopen功能]
error_reporting(0);
$url=$row_runlist['ip']; //从数据库中读取IP
$pp=$row_runlist['webport']; //从数据库中读取端口
$test = fsockopen( "$url","$pp",$errno,$errstr,2);
if($test)
{
echo "
";
}
else
{
echo "
";
}
?>
阅读(1616) | 评论(0) | 转发(0) |