Database export to text file...
View Single Post
01-09-2008, 02:17 PM
Join Date: Jan 2008
No! Don't mess with it unless you understand it! Wait a few while I edit an explanation into this post.
Okay, the .htaccess in the secure directory should read:
Deny from all
This means any database dumps that remain there
be access directly by HTTP, cURL, or like methods. This forces the download to route through the script, which I gave you a sample of above.
The download is forced by telling the browser that the file is an attachment, meaning "download this", and not .htaccess. The .htaccess file is for your security and preventing circumvention of your security.
Programmers are in a race with the Universe to create bigger and better idiot-proof programs, while the Universe is trying to create bigger and better idiots. So far the Universe is winning.
- Rich Cook
View Public Profile
Send a private message to RobertK
Find More Posts by RobertK