本文实例讲述了php实现TCP端口检测的方法。分享给大家供大家参考。具体如下:

该程序可以确认当前端口是否可用:

check($ip, $port); 
$health->status(); 
登录后复制


09-14 06:57