TGViewer
star source • استار سورس star source • استار سورس @star_sourcee · 26.4K subscribers
Post #438 2.33K
☪ #تیکه_کد دریافت پینگ سایت ها و... با استفاده از زبان #php

🔸 فانکشن موردنیاز :
function oghab_tm($host, $port, $timeout)
{
  $tB = microtime(true);
  $fP = fSockOpen($host, $port, $errno, $errstr, $timeout);
  if (!$fP) { return "down"; }
  $tA = microtime(true);
  return round((($tA - $tB) * 1000), 0)." ms";
}


🔹 حالا از فانکشن استفاده میکنیم (اگر به هر دلیلی عملیات شکست خورد کلمه Down چاپ میشود!)

echo oghab_tm("google.com", 80, 10);


🆔: @Star_Sourcee
More from @star_sourcee
  1. Aug 4, 2026📑 | سورس ربات ویروس توتال | ربات شناسایی فایل های مخرب 🔐 | ورژن : 3 💻 | زبان : PHP 8+ �…
  2. May 28, 2026سه ماه، مدت زمان کمی نیست!
  3. May 26, 2026‏شمارش معکوس برای حذف سوپراپلیکیشنای ایرانی... ⏳️
  4. May 26, 2026بالاخره بعد از ٣ ماه قطعی گسترده، روند اتصال اینترنت رسماً شروع شده و داره خیلی خوب پیش می…
  5. May 22, 2026بازی خیلی سادس!
  6. May 21, 2026کانفیگ جدید❗️ {دارای تک سرور فعال} با پروکسی ترکیب کنید https://t.me/proxy?server=31.47.51…
Threads Profile ViewerView any public Threads profile without an account.Open ThreadLook →Writing with AI? Make it sound human.Metric37 rewrites AI drafts so they read naturally. Free AI detector, 1,500 words free.Try Metric37 →