Re: [PHP] Click....download and update

2002-09-20 Thread Marek Kilimajer
The Content-Type header changes, when uploading, you can get it from $HTTP_POST_FILES['userfile']['type'], also set the filename using header(Content-Disposition: attachment; filename='. $filename ); Christian Ista wrote: You'll need to prompt the download by sending the appropriate

Re: [PHP] Click....download and update

2002-09-19 Thread Kevin Stone
Christian, You'll need to prompt the download by sending the appropriate headers. Something like.. a href=http://www.mydomain.com/downloadmyfile.phpDownload/a ? // downloadmyfile.php header(Content-Type: application/zip); header(Content-Disposition: attachment); readfile(file.zip); ? This is

RE: [PHP] Click....download and update

2002-09-19 Thread Christian Ista
You'll need to prompt the download by sending the appropriate headers. Something like.. a href=http://www.mydomain.com/downloadmyfile.phpDownload/a ? // downloadmyfile.php header(Content-Type: application/zip); header(Content-Disposition: attachment); readfile(file.zip); ? It's not