Configuring the site for the remote database Dreamweaver and PHP


show more Configuring the site for the remote database provides you with in-depth training on Business. Taught by David Gassner as part of the Dreamweaver with PHP and MySQL show less
please wait ...

Configuring the site for the remote database

Once you have deployed your database to a remote server, you can configure your Dreamweaver site so that when it's running locally, it's talking to the local database, and when it's working on the remote site, it's working with the remote database. To do this, you'll have to make some customizations to your connections file. In my web site, it's called explorecalifornia.php, and these files are always located in the Connections folder, under the site root. In the connections file, there are four variables being set: the hostname, the database name, the username, and the password.

These settings currently are for the local database. Using a little bit of PHP conditional code, you can detect where you are running, and set the variables accordingly. I will start in this demonstration by doing little bit of debugging and showing you some values that you can inspect to find out where you are running. I will use an echo command, and I will output to values concatenated...

Configuring the site for the remote database
Video duration: 7m 9s 4h 55m Intermediate Updated Jun 12, 2012

Viewers:

Configuring the site for the remote database provides you with in-depth training on Business. Taught by David Gassner as part of the Dreamweaver with PHP and MySQL

Subjects:
Business Developer Web
Software:
Dreamweaver
Author:
please wait ...