PHP: put_file_content not working : <p>I have a php-script which saves a pdf from a eclipse birt report to pdf.
I'm using get file content as imput.
The birt report pdf takes some time to create.</p>

<p>I think this is the problem. </p>

<p>In the following, the script:</p>

<pre><code>&lt;?php
$rname = 'reportname';
$wname = $rname . '_' . date('d.m.Y') . '.pdf';
$pdf = file_get_contents("http://xxx.xxx.xxx.x:8080/Birt/run?__report=" . $rname . ".rptdesign&amp;sample=my+parameter&amp;__format=pdf");
file_put_contents('/tmp/report' . $wname, $pdf);
?&gt;
</code></pre>

<p>What is the problem?</p>

<p>Thanks for your help :)</p>
