Hi,
Here is the simple script with which I am trying to have the user to
download a file when the file name is posted from the user agreement page.
dlQ_safe.php
<?
$file = $_POST[fileID];
$files_folder = "C:\\temp\\";
$dlfile = $files_folder.$file;
header("Content-type: application/pdf");
readfile("$dlfile");
?>
When a file submitted I get this...
"Warning: readfile("C:\temp\test.pdf") - No such file or directory in
c:\inetpub\wwwroot\dlQ_safe.php on line 10"
The test.pdf file is of course there...
What do I need to add to this script so that whatever a pdf filename is
submitted, acrobat will open this file in the user's browser?
Thanks
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php