file_get_contents('http://localhost/api/index.php?get=x'); how to make it work?
<p>On my local host i wanna test my API, put every time i use the statement :</p>

<pre><code>file_get_contents('http://localhost/api/index.php?get=x');
</code></pre>

<p>the script stops with " timeout ", while the URL up there works fine when requested the normal way !.</p>

<p>Hint: i think it have something to do with the php.ini file !?</p>

<p>secondly, using cURL, (<code>file_get_contents</code>+<code>stream_creat_content</code>), would be faster ?, i needed it to respond very fast </p>

<p>Thanks in advance :)</p>
