Skip to content

Instantly share code, notes, and snippets.

@sebdah
Created May 25, 2015 19:27
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 sebdah/95d14ad1e85a6a94982e to your computer and use it in GitHub Desktop.
Save sebdah/95d14ad1e85a6a94982e to your computer and use it in GitHub Desktop.
Example PHP GET of JSON resource
<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