Force the download, hide the path

Written by Ralf Stadtaus


Continued from page 1

If you have some programming skills, you can go to php.net (http://www.php.net/header), get allrepparttar needed information there and write a tool that servesrepparttar 131557 download file torepparttar 131558 visitor along withrepparttar 131559 instructions to forcerepparttar 131560 browser to openrepparttar 131561 download dialogue.

If you do not haverepparttar 131562 programming skills, you are either lucky to know that programming guy above or to know websites like STADTAUS.com. Those websites offer "ready to use" CGI or PHP scripts for implementing in your own website.

STADTAUS.com (http://www.stadtaus.com/en/) created such a tool in 2003 and has improved it as user feedback came in. That tool, named Download Center Lite (http://www.stadtaus.com/en/php_scripts/download_center_lite/), is a small package that needs to be installed on your web server. You only need to definerepparttar 131563 path to your download files directory and do some other optional configuration.

Once installed you can link torepparttar 131564 script and attachrepparttar 131565 name of your download file torepparttar 131566 link URL using a question mark:

http://www.example.com/download_center/?my_file.pdf

The script looks uprepparttar 131567 file name withinrepparttar 131568 download folder and outputs it torepparttar 131569 visitor. Download Center Lite has been tested and proven to work with small (few KByte) and even large files (over 100 MByte).

Another important built in feature is thatrepparttar 131570 script hidesrepparttar 131571 real download path. That preventsrepparttar 131572 visitors from accessing your download directory directly. You could even placerepparttar 131573 download folder outside ofrepparttar 131574 www root folder.

Admittedly, while most ofrepparttar 131575 web browsers on most ofrepparttar 131576 operating systems work fine withrepparttar 131577 script, there are some exotic combinations of browsers and operating systems that will still openrepparttar 131578 file directly instead of openingrepparttar 131579 save as dialogue. Fortunately, these browsers (i.e. IE 4) have a very small market share, so no need to worry about that much.

http://www.stadtaus.com/en/php_scripts/download_center_lite/ http://www.stadtaus.com/en/

The author is a freelance software developer and web designer (http://www.stadtaus.com/).


The Struggle with Website Tools

Written by Ralf Stadtaus


Continued from page 1

Another crucial point isrepparttar licensing and pricing issue. Scripts that can be used for free are often written by coding beginners andrepparttar 131554 quality level is very low. High quality scripts, in turn, are often expensive and overloaded with features.

While aware of these issues,repparttar 131555 object of STADTAUS.com (http://www.stadtaus.com/) is to develop and provide PHP scripts that are easy to install and configure. The scripts are fully customizable to fitrepparttar 131556 layout ofrepparttar 131557 Web site. All scripts can be downloaded and used for free and without registration. Only a small link back torepparttar 131558 project is requested, unlessrepparttar 131559 user pays a fair license fee. And finally, STADTAUS.com provides a support forum where all users are guided throughrepparttar 131560 installation process.

The author is a freelance software developer and web designer (http://www.stadtaus.com/).


    <Back to Page 1
 
ImproveHomeLife.com © 2005
Terms of Use