Re: smart auto download file

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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; filename="azipfile.zip"');
readfile($filePath);
?>

On 31 May 2011 18:02, Ali Asghar Toraby Parizy
<aliasghar.toraby@xxxxxxxxx>wrote:

> I want to build a web page for file auto download like cnet.download.
> A page that tells user "Your download will begin in a moment..." and
> after a few seconds download starts.
> How can I do that by php
> thanks for any help.
>
> --
> Ali Asghar Torabi
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>

[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux