title: PHP proxy for cross-domain AJAX scripting
body: <p>I have set up a simple php proxy</p>
  
  <pre><code> $proxy = 'tcp://127.0.0.1:8080';
  
   $context = array(
      'http' =&gt; array(
                 'proxy' =&gt; $proxy,
                 'request_fulluri' =&gt; True,
      ),
   );
  
   $context = stream_context_create($context);
  
   $body = file_get_contents("http://www.php.net", False, $context);
   print $body
  </code></pre>
  
  <p>I want to be able to make ajax request from one subdomain to another. Unfortunately the code above does not work yet. When I make an request the script loads for a long time without success.</p>
  
  <p>Any ideas?</p>