Browse Source

Added realpath so that included files work properly.

devel
Jonathan Rosenbaum 7 years ago
parent
commit
ce921e8169
  1. 3
      Connections/YBDB.php

3
Connections/YBDB.php

@ -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);
?> ?>

Loading…
Cancel
Save