Skip to content

Instantly share code, notes, and snippets.

@troyscott
Created September 8, 2013 03:32
Show Gist options
  • Select an option

  • Save troyscott/6481612 to your computer and use it in GitHub Desktop.

Select an option

Save troyscott/6481612 to your computer and use it in GitHub Desktop.
Server side response for a jsonp request.
<?php
//header("Content-Type: application/json");
echo $_GET['callback'] . '(' . "{'name' : 'First Name'}" . ')';
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment