More small fixes

This commit is contained in:
David Puglielli 2017-05-30 16:30:46 -07:00
parent aeacfeebf8
commit a1a146fad4
3 changed files with 3 additions and 2 deletions

View file

@ -14,7 +14,7 @@ $lines = explode("\n", shell_exec("odbcinst -j"));
$odbcinst_ini = explode(" ", $lines[1])[1];
//back up the odbcinst.ini file
shell_exec("cp $odbcinst_ini $odbcinst_ini.bak")
shell_exec("cp $odbcinst_ini $odbcinst_ini.bak");
//enable pooling by modifying the odbcinst.ini file
$current = file_get_contents($odbcinst_ini);

View file

@ -14,7 +14,7 @@ $lines = explode("\n", shell_exec("odbcinst -j"));
$odbcinst_ini = explode(" ", $lines[1])[1];
//back up the odbcinst.ini file
shell_exec("cp $odbcinst_ini $odbcinst_ini.bak")
shell_exec("cp $odbcinst_ini $odbcinst_ini.bak");
//enable pooling by modifying the odbcinst.ini file
$current = file_get_contents($odbcinst_ini);

View file

@ -8,6 +8,7 @@ variety of connection parameters.
require 'MsSetup.inc';
function connect($options=array()) {
require 'MsSetup.inc';
if (!isset($options['UID']) && !isset($options['uid'])) {
$options['uid'] = $uid;
}