This topic is locked

How to load database connection info from external file

9/7/2018 6:08:49 PM
PHPRunner Tips and Tricks
admin

On "Output directory" screen create a new server database connection. Copy existing code from there to a new file named config.php. Save it in the root folder of your app on the web server.

Here is a sample contents:

<?php
$host="localhost";

$user="root";

$pwd="";

$port="";

$sys_dbname="livedemo_northwind";
?>


Then add the following to that server database connection at the end:

if(file_exists('config.php'))

include 'config.php';


This is how it supposed to look: