When downloading a file with PHP, nothing happens?
<p>I'm having trouble downloading a remote file via PHP.</p>

<p>I've tried using cURL and streaming, neither of which produces an error.</p>

<p>Here's my current code for streaming.</p>

<pre><code>$url = "http://commissiongeek.com/files/text.txt";
$path = "/files/cb.txt";     
file_put_contents($path, file_get_contents($url));
</code></pre>

<p>I'll be downloading a zip file when I get this working, but in theory this should work just fine...</p>

<p>The folder's permissions are set to 777, and as said before, no errors are being thrown.
What could cause this?</p>
