Quick question that I can’t seem to find anywhere; at least not a clear cut answer. I have an SQLite file that I upload to my webhost but if I navigate to it in a URL it can be downloaded. How do I prevent this? Also, I tried to encrypt the password field with md5 function but it wouldnt allow me to add an entry with it enabled. Should I use SQLite3? Any thoughts? Thanks, I don’t really like databases…
Share
You can place it above the document root. For example, if you have a directory called
public_htmlorhtdocs, from which all of your site’s files are hosted, you can simply put the database file at the same level as those directories instead of inside.MD5 is a hash, not encryption. This means it goes one way, not two ways.
Can you explain what you mean when you say “wouldn’t allow me to add an entry”?
If you have it available, you should. There has been talk of deprecating the old 2.x-based SQLite functionality.