PHPMaker: Setting database username and password for local and hosting server

Bellow is the code you insert into PHPMaker

It is shown in the video above here to insert this code. Then upload only userfn.php to hour remote hosting server.

   if (CurrentUserIP() != "") { // not connecting to local PC
        // connect to the production database 
         $info["host"] = "localhost";
         $info["user"] = "";
         $info["pass"] = "------";
         $info["db"] = "startphp";

The code below will give you the IP address

Copy the code below in a file called server.php and put in your HTML root directory and run and it will display your server password.

<h1>Sever IP: