Skip to content

php-func/latency2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

PHP apifunc - php.latency.pl

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages