title: jsonp -> json_decode()
body: <p>for some reason I can't get the information out of a returned jsonp string,</p>
  
  <pre><code>&lt;?php
  // Created by Talisman 01/2010 ★✩ 
  
  $vorto = $_GET['vorto']; // Get the Word from Outer Space and Search for it!
  
  if (isset($vorto))
   {
   echo $vorto;
   } else {
    $Help = "No Vorto -&gt; add ?vorto=TheWordYouWant to the end of this website";
    echo $Help;
   }
  
  
  
  // Now Lets Search Alex's Vortaro, It uses jsonp
  // ex. http://vortaro.us.to/ajax/epo/eng/petas/?callback=?
  // Future Feature inproved language functinality
  
  $AVurl1 = "http://vortaro.us.to/ajax/epo/eng/"; 
  $AVurl2 = "/?callback=";
  $AVfinalurl= $AVurl1 . $vorto . $AVurl2;
  
  echo $AVfinalurl . ' &lt;/br&gt; '; // DEBUG CODE 
  
  $AVcontent = file_get_contents($AVfinalurl) ;
  echo $AVcontent . ' &lt;/br&gt; ';   // DEBUG CODE 
  </code></pre>
  
  <p>// ★✩  Why does this next line not work?</p>
  
  <pre><code> $AVDecode = json_decode($AVcontent);
  
  
  // /* 
    if(isset( $AVcontent)) {          // DEBUG CODE
    echo "json_decode set AVcontent" . ' &lt;/br&gt; ';
    } else {
    echo "something fishy here" . ' &lt;/br&gt; ';
    }
  
   if (empty($AVcontent)){
    echo "EMPTY EMPTY" . ' &lt;/br&gt; ';
    } else {
    echo "Not Empty". ' &lt;/br&gt; ';
    }
  
  echo $AVDecode . ' &lt;/br&gt; ';
  // */
  
  // Why can't I echo or access information with $AVDecode? Is it something with
  // jsonp?
  
  ?&gt;
  </code></pre>
  
  <p>this is my results</p>
  
  <blockquote>
    <p>komputilojhttp://vortaro.us.to/ajax/epo/eng/komputiloj/?callback=</p>
    
    <p>({"text":"komputilo: computer"}) </p>
    
    <p>json_decode set AVcontent  </p>
    
    <p>Not Empty</p>
  </blockquote>
  
  <p>I should be seeing the echo $AVDecode</p>