title: Different Result in Ajax Response when Request JSON from PHP
body: <p>I have working code</p>
  
  <p><a href="http://jsfiddle.net/laskarcyber/zr6jQ/" rel="nofollow">jsfiddle</a></p>
  
  <pre><code>var url = 'http://ip.jsontest.com/';        
  $.ajax({
      url: url,
      dataType: "jsonp",
      async: false,
      success: function (result) {
          alert('success');
      },
      error: function (request,error) {
          alert(error);
      }
  });         
  </code></pre>
  
  <p>That code yield 'success'. But when i change the json url (<a href="http://ip.jsontest.com/" rel="nofollow">http://ip.jsontest.com/</a>) to '<a href="http://example.com" rel="nofollow">http://example.com</a>' with this PHP code</p>
  
  <pre><code>&lt;?php
  header('Content-Type: application/json; charset=utf-8');
  $iii = array('ip' =&gt; '114.79.28.24' );
  echo json_encode($iii);
  ?&gt;
  </code></pre>
  
  <p>I got an error <br />
  What's wrong?</p>