PHPM-002 Customizing PHPmaker template for database user name, host passwrod to work in local machine and remote host

in Controll.xml file


	
	   
<!-- zdatabase file --> <control id="zdatabase" type="copy" remark="Copy zdatabase.php" ifiles="zdatabase.php" />        
           

zdatabase.php file


if($_SERVER['HTTP_HOST'] =="robojax"){
    $dbUser     = "user name for database";
    $dbPassword = "db password";
    $dbName     = "database name";
    $dbHost     = "database host";
}else{
    //this is for your hosting like: yourhost.com
    $dbUser     = "user name for database";
    $dbPassword = "db password";
    $dbName     = "database name";
    $dbHost     = "database host";

}                
            

ewdb.php line 153

ewcfg.php line 91