Last active
April 21, 2017 09:11
-
-
Save sumardi/bfdff68c5c4c3c49a8f8645808c80516 to your computer and use it in GitHub Desktop.
Revisions
-
sumardi revised this gist
Apr 21, 2017 . 1 changed file with 14 additions and 2 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -1,5 +1,17 @@ // $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); -
sumardi created this gist
Apr 21, 2017 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,5 @@ $url = urlencode ("http://domain/path/to/json"); $json = json_decode(file_get_contents($url), true); dd($json);