Skip to content

Instantly share code, notes, and snippets.

@picacure
Last active October 8, 2015 04:59
Show Gist options
  • Save picacure/3281749 to your computer and use it in GitHub Desktop.
Save picacure/3281749 to your computer and use it in GitHub Desktop.
Simple PHP
<?PHP
$json = json_decode(file_get_contents("data.js"));
$callback = $_GET["callback"];
header("Content-type: application/json");
echo $callback.'('.json_encode($json).')';
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment