downloading files from a url.
| From: | Caroline C | Date: | Wed, 07 Aug 2013 13:25:49 +0000 |
| Subject: | downloading files from a url. | ||
| Groups: | php.webmaster | ||
| Request: | Send a blank email to php-webmaster+get-16449@lists.php.net to get a copy of this message | ||
Hi!
I am new at php so i dont know how to use it.
I would like to download pdf from a certain url.Found the code to for this
issue. But it downloads the file immediately with now info message.So i
decided to have a popup window which asks me if i want to download it or
not. So i use the headers.But it creates the pdf with 0KB (basically it
doesnt get downloaded). What method should i use to know if i pressed yes
or discard for the download process in the window dialog?
Do you have any sample code to help me out with this?
Thanks in advance,
Caroline