Created
May 25, 2015 19:27
-
-
Save sebdah/95d14ad1e85a6a94982e to your computer and use it in GitHub Desktop.
Example PHP GET of JSON resource
This file contains 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
<html> | |
<head> | |
<title>PHP JSON test</title> | |
</head> | |
<body> | |
<h1>PHP JSON test</h1> | |
<?php | |
$json_data = file_get_contents("http://192.168.1.6:9090/users/4d3e75b3-3b84-4f6b-983d-30635ce06585"); | |
$data = json_decode($json_data, true); | |
print(var_dump($data)); | |
?> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment