View Single Post
ישן 08-09-07, 12:56   # 8
psycho
הוסטסניון
 
מיני פרופיל
תאריך הצטרפות: Oct 2005
גיל: 35
הודעות: 1,926

psycho לא מחובר  

השאלה אם אתה רק רוצה לבדוק אם "פורט" פתוח, כי אם כן
פשוט תשתמש ב
www.php.net/fsockopen
PHP קוד:
function pstatus($ip,$port) {
$fp = @fsockopen($ip$port$errno$errstr30);
if (!
$fp) echo "couldn't connect to $ip using port: $port";
else echo 
"Connection to $ip using $port port established";
fclose($fp);

  Reply With Quote