<?
$fp = fopen("/tmp/test.pdf", "w");
...
fclose($fp);

readfile("/tmp/test.pdf");
?>

doesnt work. Ive noticed that once a file if opened with "w" or any other writeable way, once the file if closed, it can not be opened again until the script stops.

If I open the file with "r" or any other read only method, it works ok.

Chris Lee