title: getJSON returns null or nothing at all due to jquery or php?
body: <p>I created a php file to return data encoded with JSON and then used <code>getJSON</code> to read it.  I am attempting to get info from one source and distribute it to multiple areas. I have changed the content-type also allowing all access with headers. At this point I am stuck. Any ideas how to get this working?</p>
  
  <p>PHP</p>
  
  <pre><code>header('Cache-Control: no-cache, must-revalidate');
  header('Content-type: application/json');
  header('Access-Control-Allow-Origin: *');
  
  $search_terms = curlData();
  $json = array("term" =&gt; $search_term);   
  echo $_GET['callback'] . "(" . json_encode($json) . ");";
  </code></pre>
  
  <p>the output for this php file is as follows:</p>
  
  <pre><code>({"term":"sandwich city"});
  </code></pre>
  
  <p>Here is the jQuery I am using to retrieve the json info</p>
  
  <pre><code>$.getJSON("http://MYWEBSITE.com/terms.php?callback", function(data) {
      alert(data);
  });
  </code></pre>
  
  <p>​</p>