Wrox Programmer Forums
Go Back   Wrox Programmer Forums > PHP/MySQL > PHP How-To
|
PHP How-To Post your "How do I do this with PHP?" questions here.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the PHP How-To section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old March 19th, 2007, 02:05 AM
Authorized User
 
Join Date: Oct 2006
Posts: 43
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to snowbydave1
Default How to provide download link for images

Dear Friend,


I want to give download link to few images, please check below example.

1.jpg
2.jpg
3.jpg

When user click on any above file it will display Open or Run, Save, cancel box as it will happen for other site.

So end user will save file in appropriate folder. Please guide me or give me source code.


Thanking you,


Snowby Dave

 
Old March 26th, 2007, 11:47 PM
Authorized User
 
Join Date: Sep 2006
Posts: 53
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to aneesh_sunu@yahoo.co.in Send a message via Yahoo to aneesh_sunu@yahoo.co.in
Default

Hi
If yor file is zip format it will automatically display a box with ave option
You can try <a href="1.jpg" target="_blank">Download</a> for simple download
The browser also open this image, and u can save.

Regards
Aneesh
 
Old March 27th, 2007, 12:11 AM
Authorized User
 
Join Date: Oct 2006
Posts: 43
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to snowbydave1
Default

Hi Aneesh

Thanks for your reply. But Anish problem is that I have all image in 300 dpi. It will nearly more then 3MB. So it is very tedious to open file then save. I had already provide this facilities. But my client don't want with that.

So with the help of Header() I had provide download functionality. This will work nice in most of cases. But sometime images does not open.

Another problem is that client want image file list with date. I had already did it and provide checkbox for each row. Client says that he wants to download images of all selected checkbox at a single time.

Do you have any way to come out from this? Also if client click on single image then Save, Open, Cancel window should be appear.


Regards

Snowby






Similar Threads
Thread Thread Starter Forum Replies Last Post
How to provide download link for images snowbydave1 Beginning PHP 4 March 24th, 2007 04:38 AM
How to provide download link for images snowbydave1 Pro PHP 0 March 19th, 2007 02:06 AM
How to provide download link for images snowbydave1 PHP Databases 0 March 19th, 2007 02:04 AM
How to provide download link for images snowbydave1 PHP FAQs 0 March 19th, 2007 02:03 AM
link to download a file kalyansarkar108 Javascript How-To 1 November 28th, 2005 09:21 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.