Downloading a file with php fails
<p>The file that I have is:</p>

<pre><code>$file_path='CSVs/data'.time().'TaskID_'.$this-&gt;task_id.'.csv';
</code></pre>

<p>Then I attach it to this function.</p>

<pre><code>$save_to="Y:\SEO\Avi\BackLinks";
$this-&gt;download_remote_file(
    "http://212.13.98.158/backlinks/".$file_path, $save_to);

function download_remote_file($file_url, $save_to)
{
    $content = file_get_contents($file_url);
    file_put_contents($save_to, $content);
}
</code></pre>

<p>That file should retrieve the files contents and copy it to the directory.</p>

<p>The errors that I get are to do with 404 and that the folder doesnt exist. But I do know for a fact, that the folder exists..and I am quite sure that the links is the right link that points to the resource</p>

<p><strong>UPDATE:</strong> 
mADE THE CHANGES..this simple example..throws me 403 forbidden. saying that the file or directory doesnt exist.</p>

<pre><code>    $save_to="Y:\SEO\Avi\BackLinks\data1335692353TaskID_122.csv";
      $this-&gt;download_remote_file("http://212.199.198.158/backlinks/CSVs/data1335692353TaskID_122.csv", $save_to);
</code></pre>
