search
top

Database Connections Outside of Webroot

For extra security many often store their database connection credentials outside of the web root. This is fairly easy to achieve without to much work. For those of you who are unsure how to store database connection credentials in a separate file please refer to my article on Connecting to MySQL with PHP Once you have your connections in a php file (this is also relevant to other languages such as asp... read more

Connecting to MySQL with PHP

Connecting to a mysql database is pretty easy using php as it gives you all the commands you need in order to do it. This example is a basic way to do, there are other methods but I found this way useful when I was just starting out! Here is an example of connecting and quering a mysql... read more
top