Last active
April 21, 2017 09:11
-
-
Save sumardi/bfdff68c5c4c3c49a8f8645808c80516 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// $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