function getPHPReportsFilePath() { $sPath = getPHPReportsIncludePath(); if (!is_null($sPath)) { return $sPath; } // put your distro path here return "/var/htdocs/phpreports/"; }
function getPHPReportsFilePath() { $sPath = getPHPReportsIncludePath(); if (!is_null($sPath)) { return $sPath; } // put your distro path here return __INCLUDES__ . "/php/PHPReports/"; }
function getPHPReportsFilePath() { $sPath = getPHPReportsIncludePath(); if (!is_null($sPath)) { return $sPath; } // put your distro path here return PHP_REPORTS_NIX; }
// database user $sPass = "******"; // database password $sData = "./tests/sales.sqlite3"; // database name $sInte = "sqlite3"; // database interface $sConn = "sqlite3"; // database connection // check them if (strlen($sUser) < 1 || strlen($sPass) < 1 || strlen($sInte) < 1 || strlen($sConn) < 1) { print "ERROR: please configure this script before run!"; return; } // check paths $sIncPath = getPHPReportsIncludePath(); $sFilPath = getPHPReportsFilePath(); $sTmpPath = getPHPReportsTmpPath(); print "Checking paths ...\n"; if (is_null($sIncPath) || strlen(trim($sIncPath)) <= 0) { print "ERROR: No INCLUDE path defined."; return; } if (is_null($sFilPath) || strlen(trim($sFilPath)) <= 0) { print "ERROR: No FILE path defined."; return; } if (is_null($sTmpPath) || strlen(trim($sTmpPath)) <= 0) { print "ERROR: No TEMP path defined."; return; }