把一段php语言转换成asp
<?php/*changeyourserver'snameandhost*/$server['name']="MyPT";$server['host']="127.0.0...
<?php /*change your server's name and host*/ $server['name'] = "MyPT"; $server['host'] = "127.0.0.1"; $server['port'] = "10007"; /*no need to change the further code*/ $connection = @fsockopen($server['host'], $server['port'], $ERROR_NO, $ERROR_STR, (float)1.5); echo "{$server['name']} PristonTale server is "; if($connection) { fclose($connection); echo "<font color=\"green\">在线</font>"; } else { echo "<font color=\"red\">维护</font>"; } ?> 这是一段PHP代码,用来检测127.0.0.1这个IP的10007端口是否在传送数据,也就是用来检测某游戏的服务端是否开启,但是我需要用Asp代码来写,不能用php
展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询