• Downloading from our site will require you to have a paid membership. Upgrade to a Premium Membership from 10$ a month today!

    Dont forget read our Rules! Also anyone caught Sharing this content will be banned. By using this site you are agreeing to our rules so read them. Saying I did not know is simply not an excuse! You have been warned.

Share Code PHP Hiển Thị Ping MS cho Web/Wap


New Member
Hướng Dẫn Sử Dụng Code PHP
+ Bước 1 : Dán code vừa lấy


function teamit_ping($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"; }

+ Bước 2 : Thêm Code PHP này vào chổ muốn hiệp Ping

PHP Code:
<? =teamit_ping("sitecuaban.com", 443, 10) ?>
+ Bước 3 : Sitecuaban.com Bạn thay Url site của bạn vào nhé!

Lưu ý : nếu site bạn http thì thay 80 vào 443,còn SSL thì để yên !
Nếu có sai sót gì bạn Comment ở dưới nhé!
Last edited by a moderator:

Facebook Comments

New posts New threads New resources