Skip to content

Instantly share code, notes, and snippets.

@sumardi
Last active April 21, 2017 09:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sumardi/bfdff68c5c4c3c49a8f8645808c80516 to your computer and use it in GitHub Desktop.
Save sumardi/bfdff68c5c4c3c49a8f8645808c80516 to your computer and use it in GitHub Desktop.
// $url = urlencode ("http://domain/path/to/json");
// $json = json_decode(file_get_contents($url), true);
// dd($json);
$url = "https://atsbopis.asuscomm.com:8446/html/stats/rest/index.php?entity=realtime";
$arrContextOptions=array(
"ssl"=>array(
"verify_peer"=>false,
"verify_peer_name"=>false,
),
);
$output = file_get_contents($url, true, stream_context_create($arrContextOptions));
$json = json_decode($output, true);
dd($json);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment