![]() |
|
| |||||||
| Notices |
| Scripts & Fantastico Discussions, help and troubleshooting scripts included is adding popular Fantastico scripts to your website such as guest books, osCommerce shopping cart, polls, content management systems etc… |
![]() |
| | Thread Tools |
|
#1
| |||
| |||
|
Thanks to all who assist! I need to create a simple download script to download files (gif images) from my site that are not zip files. If anyone knows where I can get one, please let me know Thanks, Tom |
|
#2
| ||||
| ||||
|
You can simply link to the picture and they right click save as or save target as. No script needed. Karen
__________________ KMAC Enterprise Missouri Free Classified Ads Charming Noveltees~Sports Logos Charms ![]() ![]() I've learned that artificial intelligence is no match for natural stupidity! |
|
#4
| ||||
| ||||
|
Are you looking for a PAID download script or are these for free ?¿
|
|
#6
| ||||
| ||||
|
What I meant was are the images free to download ?¿
|
|
#8
| ||||
| ||||
|
Well you have the 2 suggestions click and save/download or a zip file............. cant think of anything else. |
|
#9
| ||||
| ||||
|
Or use a downloader script...... There are specific ones, depending on whether the file type and size are stored somewhere or not. Or, you may pass the type and size your self. Here is one: <?php $fileID = $_GET['fileID']; $file_path = $_GET['product_file_path']; $file_name = $_GET['product_file_Name']; $file_size = $_GET['product_file_Size']; $file_type = $_GET['product_file_Type']; header("Pragma: public"); header('Expires: '.gmdate('D, d M Y H:i:s').' GMT'); header("Cache-Control: must-revalidate, post-check=0, pre-check=0"); header("Cache-Control: private",false); header("Content-type: Application/ $file_type"); header("Content-Disposition: attachment; filename=$file_name"); header("Content-Description: Download PHP"); header("Content-Length: $file_size"); header("Content-Transfer-Encoding: binary"); set_time_limit(0); $fp = fopen($file_path, 'r'); $data = fread($fp, $file_size); fclose($fp); echo $data; ?> In this one, the button to download should contain a link like http://www.yourdomain.com/downloader.php?file_size=1234&file_type=image/jpg&filename=My_image_title&filepath=foldername/file.jpg
__________________ Navaldesign Logger Lite: Low Cost, Customizable, multifeatured Login script Instant Download Cart: a Powerfull, Customized, in site, DB driven, e-products Cart DBTechnosystems.com Forms, Databases, Shopping Carts, Instant Download Carts, Loggin Systems and more.... Advanced BlueVoda Form Processor : No coding form processor! Just install and use! Now with built in CAPTCHA! |
|
#10
| |||
| |||
|
Navaldesign Thank you for the help, but I am still a little confused on how to use this script: http://www.yourdomain.com/downloader...rname/file.jpg Any assistance will be greatly appreciated Thanks Tom |
|
#11
| ||||
| ||||
|
Save the script as "downloader.php" using notepad. Upload it on your site, in the same folder where the files you want to allow download for, are. Then, when you create the links for the downloads, you need to create the link as explained above. The parametres in the link MUST be specified by you, case per case. There are some other scripts that will only need to pass with the link, the file path. But, not all server settings allow automatic recognition of the file type and file size. So it is best if for every file, you specify these details yourself. Example: let's suppose that you have an image file, named my_image.jpg. Being JPG, it's type is image/jpeg Let's also suppose that the file is stored in the directory under the directory where the script is saved, directory name images, and that it has a size of 158689 Bytes. Let's also suppose that you want to send this image to the visitor as "sunset.jpg" The link from your page to the script, should be: The link should be: http://www.yourdomain.com/downloader.php?file_size=158869&file_type=image/jpeg&filename=sunset.jpg&filepath=images/my_image.jpg
__________________ Navaldesign Logger Lite: Low Cost, Customizable, multifeatured Login script Instant Download Cart: a Powerfull, Customized, in site, DB driven, e-products Cart DBTechnosystems.com Forms, Databases, Shopping Carts, Instant Download Carts, Loggin Systems and more.... Advanced BlueVoda Form Processor : No coding form processor! Just install and use! Now with built in CAPTCHA! |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| |