Hi Here is a script that will send any file for download, even .html files. I called it send.php
<? $headertxt = "Content-Disposition: attachment; filename=\"".$filename."\""; header("Content-Type: application/force-download");header($headertxt); $fd = fopen("$filename","r"); fpassthru($fd); ?> usage is send.php?filename=file_to_send Looks weird but it works Tom At 06:31 AM 7/03/2002, Caleb Carvalho wrote: >Hi all, > >PHPBuilder.com Has an Easy File Upload Article, i find it to be very >useful and helpful for my situation, does any one know of a similar but >for download the uploaded file? > >I would like to upload and download file in my server directory using php, > >please, please let me know of any article that can help me, > >in the mean time i'll keep searching for solution; > >many thanks > >Caleb > >_________________________________________________________________ >Send and receive Hotmail on your mobile device: http://mobile.msn.com > > >-- >PHP General Mailing List (http://www.php.net/) >To unsubscribe, visit: http://www.php.net/unsub.php > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php