Zubrag.com
May 22, 2012, 05:30:18 am
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email?
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
Home
Help
Search
Login
Register
Zubrag.com :: Forum
>
zubrag.com
>
Questions About Our Scripts
>
Smart File Download
>
Smart Downloader - newbie questions
Pages: [
1
]
Print
Author
Topic: Smart Downloader - newbie questions (Read 4686 times)
CurrentWave
Newbie
Posts: 4
Smart Downloader - newbie questions
«
on:
January 17, 2007, 01:21:18 pm »
I see in the php file where mime types are to be configured.....
I only want my mp3's to download instead of playing - The other mime types are not needed - so can I comment them out (leaving for possible future use) and then set the 'mp3' => 'audio/mpeg', to application/octet-stream to force a download?
Thanks for the help.
Logged
zubrag
Administrator
Hero Member
Posts: 753
Re: Smart Downloader - newbie questions
«
Reply #1 on:
January 17, 2007, 02:49:18 pm »
Sure, we pre-populated downloader with some popular mime types just for your convenience.
Logged
CurrentWave
Newbie
Posts: 4
Re: Smart Downloader - newbie questions
«
Reply #2 on:
January 17, 2007, 03:14:49 pm »
So by 'Sure' you mean - I can just comment out the unnecessary mime types and set mp3 to application/octet-stream to force downloads? This would be a good use of the script - yes?
I'm sorry to post again, but 'Sure' is to soft of a reply for me
Thanks,
Logged
zubrag
Administrator
Hero Member
Posts: 753
Re: Smart Downloader - newbie questions
«
Reply #3 on:
January 17, 2007, 04:14:04 pm »
yes, just comment out all mime types except mp3
This would be a good use of the script - yes?
It was created to hide real file path, and to restrics file types for download. So yes, it would be a good use of the script.
Logged
CurrentWave
Newbie
Posts: 4
Re: Smart Downloader - newbie questions
«
Reply #4 on:
January 18, 2007, 04:52:32 pm »
Great! Thanks for explaining it....
One more thing - for BASE_DIR is the URL path of
http://domainname.com/downloads/ okay? Or
does the script want some kind of root path... and if so can you give me an example.
Thank you,
Logged
zubrag
Administrator
Hero Member
Posts: 753
Re: Smart Downloader - newbie questions
«
Reply #5 on:
January 18, 2007, 05:19:37 pm »
BASE_DIR
cannot be an url. It must be relative path or even better absolute path from the root. It is a folder where all files available for downloads are saved on your server. Downloader will try to find file in this folder and subfolders.
Examples:
1)
Unix:
/home/path/to/the/folder/with/files/to/download/
2)
Windows:
c:/home/path/to/the/folder/with/files/to/download/
Please note a slash at the end.
Logged
CurrentWave
Newbie
Posts: 4
Re: Smart Downloader - newbie questions
«
Reply #6 on:
January 18, 2007, 09:00:33 pm »
Thanks so much - you have explained it so well even I understood.
I tested it out and - it works great!
Thanks again....
Logged
Pages: [
1
]
Print
Jump to:
Please select a destination:
-----------------------------
zubrag.com
-----------------------------
=> News
=> Questions About Our Scripts
===> Password Protect
===> Password Protect Advanced
===> cPanel Scripts
===> Thumbnail Generator
===> Website Thumbnail Generator
===> Smart File Download
===> Anti Spam Image Generator
===> Watermark
=> Wish List / Suggestions
=> Bugs / Known Issues
-----------------------------
Webmasters Lounge
-----------------------------
=> Tips and Tricks
=> Webmasters: General Discussion
-----------------------------
Programmers Lounge
-----------------------------
=> PHP / MySql / Smarty Questions
=> Tips and Tricks
=> Programmers: General Discussion
-----------------------------
General Category
-----------------------------
=> General Discussion
Loading...