Skip to content

Latest commit

 

History

History
44 lines (34 loc) · 633 Bytes

File metadata and controls

44 lines (34 loc) · 633 Bytes

php

PHP apifunc - php.latency.pl

functions:

  • ping.php
  • response.php
  • response_curl.php
  • response_true.php

example

Request

localhost/index.php?domain=softreck.com

index.php

apifunc([
    'https://php.defjson.com/def_json.php',
    'https://php.latency.pl/ping.php'
], function () {
    echo def_json("", [
        "ping" => ping($_GET['domain'], 80, 10),
        "domain" => $_GET['domain']
    ]);
});

Response

{
    "message":	"5 ms",
    "domain":	"softreck.com"
}    

https://github.com/latency-pl/php.git