Re: [PHP] smart auto download file

2011-05-31 Thread jean-baptiste verrey
it's made in JavaScript, by creating an iframe loading the file, but their downloader might use something like a php file to force download such as ?php $filePath='/var/wwwblablah.zip'; header('Content-type: application/octet-stream'); header('Content-Disposition: attachment;

Re: [PHP] smart auto download file

2011-05-31 Thread Ali Asghar Toraby Parizy
Hi thanks for your help jean I've used this code before. But I want a little different thing. I need to tell something to the user before starting download. something like Your download will begin in a moment... . So header couldn't help me. If I try to echo anything header doesn't work! On Tue,

Re: [PHP] smart auto download file

2011-05-31 Thread Ashley Sheridan
On Wed, 2011-06-01 at 00:08 +0430, Ali Asghar Toraby Parizy wrote: Hi thanks for your help jean I've used this code before. But I want a little different thing. I need to tell something to the user before starting download. something like Your download will begin in a moment... . So header

Re: [PHP] smart auto download file

2011-05-31 Thread jean-baptiste verrey
gosh, I should have read before answering for the downloader thing. BUT you actually need javascript if you want to do it. You create an hidden iframe somewhere on your page, you give him the url of your file and pop it is downloaded, and you need simply to use javascript function setInterval to

Re: [PHP] smart auto download file

2011-05-31 Thread Stuart Dallas
On Tue, May 31, 2011 at 8:49 PM, jean-baptiste verrey jeanbaptiste.ver...@gmail.com wrote: gosh, I should have read before answering for the downloader thing. BUT you actually need javascript if you want to do it. You create an hidden iframe somewhere on your page, you give him the url of

Re: [PHP] smart auto download file

2011-05-31 Thread Geoff Shang
On Wed, 1 Jun 2011, Ali Asghar Toraby Parizy wrote: I need to tell something to the user before starting download. something like Your download will begin in a moment... . So header couldn't help me. If I try to echo anything header doesn't work! Couldn't you just do an HTML redirect?