Re: [PHP] Force file download with header

2003-01-06 Thread Altug Sahin
Thanks Chris, I will check it out.. "Chris Shiflett" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > --- Altug Sahin <[EMAIL PROTECTED]> wrote: > > > $file = $_POST[fileID]; > > $files_folder = "C:\\temp\\"; > > $dlfile = $files_folder.$file; > > > > header("Co

Re: [PHP] Force file download with header

2003-01-06 Thread Chris Shiflett
--- Altug Sahin <[EMAIL PROTECTED]> wrote: > $file = $_POST[fileID]; > $files_folder = "C:\\temp\\"; > $dlfile = $files_folder.$file; > > header("Content-type: application/pdf"); > readfile("$dlfile"); > ?> > > I get this... > "Warning: readfile("C:\temp\test.pdf") - No such file or > directory

[PHP] Force file download with header

2003-01-06 Thread Altug Sahin
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 When a file submitted I get this... "Warning: readfile("C:\temp\test.pdf") - No such file or directory in c:\inetpub\wwwroot\dlQ_safe