1
0
mirror of https://github.com/fspc/Yellow-Bike-Database.git synced 2025-02-22 08:53:23 -05:00

Added realpath so that included files work properly.

This commit is contained in:
Jonathan Rosenbaum 2017-07-15 18:48:34 +00:00
parent 2d12b59786
commit ce921e8169

View File

@ -8,9 +8,8 @@ $hostname_YBDB = "enter_hostname";
$database_YBDB = "enter_schema"; $database_YBDB = "enter_schema";
$username_YBDB = "enter_username"; $username_YBDB = "enter_username";
$password_YBDB = "enter_password"; $password_YBDB = "enter_password";
if(file_exists('Connections/local_configurations.php')) { if(file_exists( realpath($_SERVER["DOCUMENT_ROOT"]) . "/Connections/local_configurations.php")) {
require_once('local_configurations.php'); require_once('local_configurations.php');
} }
$YBDB = mysql_pconnect($hostname_YBDB, $username_YBDB, $password_YBDB) or trigger_error(mysql_error(),E_USER_ERROR); $YBDB = mysql_pconnect($hostname_YBDB, $username_YBDB, $password_YBDB) or trigger_error(mysql_error(),E_USER_ERROR);
?> ?>