"Bruce" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> hi...
>
> i can allow files to be uploaded to my app. are there corresponding
> scripts/code to allow files to be downloaded to the user via the browser??
>
> just occurred to me that i'll want to do this...
>
> nothing jumps out at me searching google/php.net for this...
>
> thanks

What about pointing a link to the file?!?:
<a href="/path/to/your/file.pdf">link</a>

If the file is outside of the webroot root or in a protected directory you
can use PEAR's HTTP_Download:
http://pear.php.net/package/HTTP_Download

Regards, Torsten Roehr

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to