added logic in cli mode to chdir to the correct directory first
the webserver would normally do this for us, but we need to do it
This commit is contained in:
parent
355bec91a2
commit
b20a38f454
|
|
@ -36,6 +36,7 @@
|
||||||
// make sure the document_root is set
|
// make sure the document_root is set
|
||||||
$_SERVER["SCRIPT_FILENAME"] = str_replace("\\", '/', $_SERVER["SCRIPT_FILENAME"]);
|
$_SERVER["SCRIPT_FILENAME"] = str_replace("\\", '/', $_SERVER["SCRIPT_FILENAME"]);
|
||||||
if(PHP_SAPI == 'cli'){
|
if(PHP_SAPI == 'cli'){
|
||||||
|
chdir(pathinfo($_SERVER["PHP_SELF"], PATHINFO_DIRNAME));
|
||||||
$script_full_path = str_replace("\\", '/', getcwd() . '/' . $_SERVER["SCRIPT_FILENAME"]);
|
$script_full_path = str_replace("\\", '/', getcwd() . '/' . $_SERVER["SCRIPT_FILENAME"]);
|
||||||
$dirs = explode('/', pathinfo($script_full_path, PATHINFO_DIRNAME));
|
$dirs = explode('/', pathinfo($script_full_path, PATHINFO_DIRNAME));
|
||||||
if (file_exists('/.project.ROOT')) {
|
if (file_exists('/.project.ROOT')) {
|
||||||
|
|
|
||||||
|
|
@ -36,6 +36,7 @@
|
||||||
// make sure the document_root is set
|
// make sure the document_root is set
|
||||||
$_SERVER["SCRIPT_FILENAME"] = str_replace("\\", '/', $_SERVER["SCRIPT_FILENAME"]);
|
$_SERVER["SCRIPT_FILENAME"] = str_replace("\\", '/', $_SERVER["SCRIPT_FILENAME"]);
|
||||||
if(PHP_SAPI == 'cli'){
|
if(PHP_SAPI == 'cli'){
|
||||||
|
chdir(pathinfo($_SERVER["PHP_SELF"], PATHINFO_DIRNAME));
|
||||||
$script_full_path = str_replace("\\", '/', getcwd() . '/' . $_SERVER["SCRIPT_FILENAME"]);
|
$script_full_path = str_replace("\\", '/', getcwd() . '/' . $_SERVER["SCRIPT_FILENAME"]);
|
||||||
$dirs = explode('/', pathinfo($script_full_path, PATHINFO_DIRNAME));
|
$dirs = explode('/', pathinfo($script_full_path, PATHINFO_DIRNAME));
|
||||||
if (file_exists('/.project.ROOT')) {
|
if (file_exists('/.project.ROOT')) {
|
||||||
|
|
|
||||||
|
|
@ -36,6 +36,7 @@
|
||||||
// make sure the document_root is set
|
// make sure the document_root is set
|
||||||
$_SERVER["SCRIPT_FILENAME"] = str_replace("\\", '/', $_SERVER["SCRIPT_FILENAME"]);
|
$_SERVER["SCRIPT_FILENAME"] = str_replace("\\", '/', $_SERVER["SCRIPT_FILENAME"]);
|
||||||
if(PHP_SAPI == 'cli'){
|
if(PHP_SAPI == 'cli'){
|
||||||
|
chdir(pathinfo($_SERVER["PHP_SELF"], PATHINFO_DIRNAME));
|
||||||
$script_full_path = str_replace("\\", '/', getcwd() . '/' . $_SERVER["SCRIPT_FILENAME"]);
|
$script_full_path = str_replace("\\", '/', getcwd() . '/' . $_SERVER["SCRIPT_FILENAME"]);
|
||||||
$dirs = explode('/', pathinfo($script_full_path, PATHINFO_DIRNAME));
|
$dirs = explode('/', pathinfo($script_full_path, PATHINFO_DIRNAME));
|
||||||
if (file_exists('/.project.ROOT')) {
|
if (file_exists('/.project.ROOT')) {
|
||||||
|
|
|
||||||
|
|
@ -36,6 +36,7 @@
|
||||||
// make sure the document_root is set
|
// make sure the document_root is set
|
||||||
$_SERVER["SCRIPT_FILENAME"] = str_replace("\\", '/', $_SERVER["SCRIPT_FILENAME"]);
|
$_SERVER["SCRIPT_FILENAME"] = str_replace("\\", '/', $_SERVER["SCRIPT_FILENAME"]);
|
||||||
if(PHP_SAPI == 'cli'){
|
if(PHP_SAPI == 'cli'){
|
||||||
|
chdir(pathinfo($_SERVER["PHP_SELF"], PATHINFO_DIRNAME));
|
||||||
$script_full_path = str_replace("\\", '/', getcwd() . '/' . $_SERVER["SCRIPT_FILENAME"]);
|
$script_full_path = str_replace("\\", '/', getcwd() . '/' . $_SERVER["SCRIPT_FILENAME"]);
|
||||||
$dirs = explode('/', pathinfo($script_full_path, PATHINFO_DIRNAME));
|
$dirs = explode('/', pathinfo($script_full_path, PATHINFO_DIRNAME));
|
||||||
if (file_exists('/.project.ROOT')) {
|
if (file_exists('/.project.ROOT')) {
|
||||||
|
|
|
||||||
|
|
@ -36,6 +36,7 @@
|
||||||
// make sure the document_root is set
|
// make sure the document_root is set
|
||||||
$_SERVER["SCRIPT_FILENAME"] = str_replace("\\", '/', $_SERVER["SCRIPT_FILENAME"]);
|
$_SERVER["SCRIPT_FILENAME"] = str_replace("\\", '/', $_SERVER["SCRIPT_FILENAME"]);
|
||||||
if(PHP_SAPI == 'cli'){
|
if(PHP_SAPI == 'cli'){
|
||||||
|
chdir(pathinfo($_SERVER["PHP_SELF"], PATHINFO_DIRNAME));
|
||||||
$script_full_path = str_replace("\\", '/', getcwd() . '/' . $_SERVER["SCRIPT_FILENAME"]);
|
$script_full_path = str_replace("\\", '/', getcwd() . '/' . $_SERVER["SCRIPT_FILENAME"]);
|
||||||
$dirs = explode('/', pathinfo($script_full_path, PATHINFO_DIRNAME));
|
$dirs = explode('/', pathinfo($script_full_path, PATHINFO_DIRNAME));
|
||||||
if (file_exists('/.project.ROOT')) {
|
if (file_exists('/.project.ROOT')) {
|
||||||
|
|
|
||||||
|
|
@ -36,6 +36,7 @@
|
||||||
// make sure the document_root is set
|
// make sure the document_root is set
|
||||||
$_SERVER["SCRIPT_FILENAME"] = str_replace("\\", '/', $_SERVER["SCRIPT_FILENAME"]);
|
$_SERVER["SCRIPT_FILENAME"] = str_replace("\\", '/', $_SERVER["SCRIPT_FILENAME"]);
|
||||||
if(PHP_SAPI == 'cli'){
|
if(PHP_SAPI == 'cli'){
|
||||||
|
chdir(pathinfo($_SERVER["PHP_SELF"], PATHINFO_DIRNAME));
|
||||||
$script_full_path = str_replace("\\", '/', getcwd() . '/' . $_SERVER["SCRIPT_FILENAME"]);
|
$script_full_path = str_replace("\\", '/', getcwd() . '/' . $_SERVER["SCRIPT_FILENAME"]);
|
||||||
$dirs = explode('/', pathinfo($script_full_path, PATHINFO_DIRNAME));
|
$dirs = explode('/', pathinfo($script_full_path, PATHINFO_DIRNAME));
|
||||||
if (file_exists('/.project.ROOT')) {
|
if (file_exists('/.project.ROOT')) {
|
||||||
|
|
|
||||||
|
|
@ -36,6 +36,7 @@
|
||||||
// make sure the document_root is set
|
// make sure the document_root is set
|
||||||
$_SERVER["SCRIPT_FILENAME"] = str_replace("\\", '/', $_SERVER["SCRIPT_FILENAME"]);
|
$_SERVER["SCRIPT_FILENAME"] = str_replace("\\", '/', $_SERVER["SCRIPT_FILENAME"]);
|
||||||
if(PHP_SAPI == 'cli'){
|
if(PHP_SAPI == 'cli'){
|
||||||
|
chdir(pathinfo($_SERVER["PHP_SELF"], PATHINFO_DIRNAME));
|
||||||
$script_full_path = str_replace("\\", '/', getcwd() . '/' . $_SERVER["SCRIPT_FILENAME"]);
|
$script_full_path = str_replace("\\", '/', getcwd() . '/' . $_SERVER["SCRIPT_FILENAME"]);
|
||||||
$dirs = explode('/', pathinfo($script_full_path, PATHINFO_DIRNAME));
|
$dirs = explode('/', pathinfo($script_full_path, PATHINFO_DIRNAME));
|
||||||
if (file_exists('/.project.ROOT')) {
|
if (file_exists('/.project.ROOT')) {
|
||||||
|
|
|
||||||
|
|
@ -36,6 +36,7 @@
|
||||||
// make sure the document_root is set
|
// make sure the document_root is set
|
||||||
$_SERVER["SCRIPT_FILENAME"] = str_replace("\\", '/', $_SERVER["SCRIPT_FILENAME"]);
|
$_SERVER["SCRIPT_FILENAME"] = str_replace("\\", '/', $_SERVER["SCRIPT_FILENAME"]);
|
||||||
if(PHP_SAPI == 'cli'){
|
if(PHP_SAPI == 'cli'){
|
||||||
|
chdir(pathinfo($_SERVER["PHP_SELF"], PATHINFO_DIRNAME));
|
||||||
$script_full_path = str_replace("\\", '/', getcwd() . '/' . $_SERVER["SCRIPT_FILENAME"]);
|
$script_full_path = str_replace("\\", '/', getcwd() . '/' . $_SERVER["SCRIPT_FILENAME"]);
|
||||||
$dirs = explode('/', pathinfo($script_full_path, PATHINFO_DIRNAME));
|
$dirs = explode('/', pathinfo($script_full_path, PATHINFO_DIRNAME));
|
||||||
if (file_exists('/.project.ROOT')) {
|
if (file_exists('/.project.ROOT')) {
|
||||||
|
|
|
||||||
|
|
@ -36,6 +36,7 @@
|
||||||
// make sure the document_root is set
|
// make sure the document_root is set
|
||||||
$_SERVER["SCRIPT_FILENAME"] = str_replace("\\", '/', $_SERVER["SCRIPT_FILENAME"]);
|
$_SERVER["SCRIPT_FILENAME"] = str_replace("\\", '/', $_SERVER["SCRIPT_FILENAME"]);
|
||||||
if(PHP_SAPI == 'cli'){
|
if(PHP_SAPI == 'cli'){
|
||||||
|
chdir(pathinfo($_SERVER["PHP_SELF"], PATHINFO_DIRNAME));
|
||||||
$script_full_path = str_replace("\\", '/', getcwd() . '/' . $_SERVER["SCRIPT_FILENAME"]);
|
$script_full_path = str_replace("\\", '/', getcwd() . '/' . $_SERVER["SCRIPT_FILENAME"]);
|
||||||
$dirs = explode('/', pathinfo($script_full_path, PATHINFO_DIRNAME));
|
$dirs = explode('/', pathinfo($script_full_path, PATHINFO_DIRNAME));
|
||||||
if (file_exists('/.project.ROOT')) {
|
if (file_exists('/.project.ROOT')) {
|
||||||
|
|
|
||||||
|
|
@ -36,6 +36,7 @@
|
||||||
// make sure the document_root is set
|
// make sure the document_root is set
|
||||||
$_SERVER["SCRIPT_FILENAME"] = str_replace("\\", '/', $_SERVER["SCRIPT_FILENAME"]);
|
$_SERVER["SCRIPT_FILENAME"] = str_replace("\\", '/', $_SERVER["SCRIPT_FILENAME"]);
|
||||||
if(PHP_SAPI == 'cli'){
|
if(PHP_SAPI == 'cli'){
|
||||||
|
chdir(pathinfo($_SERVER["PHP_SELF"], PATHINFO_DIRNAME));
|
||||||
$script_full_path = str_replace("\\", '/', getcwd() . '/' . $_SERVER["SCRIPT_FILENAME"]);
|
$script_full_path = str_replace("\\", '/', getcwd() . '/' . $_SERVER["SCRIPT_FILENAME"]);
|
||||||
$dirs = explode('/', pathinfo($script_full_path, PATHINFO_DIRNAME));
|
$dirs = explode('/', pathinfo($script_full_path, PATHINFO_DIRNAME));
|
||||||
if (file_exists('/.project.ROOT')) {
|
if (file_exists('/.project.ROOT')) {
|
||||||
|
|
|
||||||
|
|
@ -36,6 +36,7 @@
|
||||||
// make sure the document_root is set
|
// make sure the document_root is set
|
||||||
$_SERVER["SCRIPT_FILENAME"] = str_replace("\\", '/', $_SERVER["SCRIPT_FILENAME"]);
|
$_SERVER["SCRIPT_FILENAME"] = str_replace("\\", '/', $_SERVER["SCRIPT_FILENAME"]);
|
||||||
if(PHP_SAPI == 'cli'){
|
if(PHP_SAPI == 'cli'){
|
||||||
|
chdir(pathinfo($_SERVER["PHP_SELF"], PATHINFO_DIRNAME));
|
||||||
$script_full_path = str_replace("\\", '/', getcwd() . '/' . $_SERVER["SCRIPT_FILENAME"]);
|
$script_full_path = str_replace("\\", '/', getcwd() . '/' . $_SERVER["SCRIPT_FILENAME"]);
|
||||||
$dirs = explode('/', pathinfo($script_full_path, PATHINFO_DIRNAME));
|
$dirs = explode('/', pathinfo($script_full_path, PATHINFO_DIRNAME));
|
||||||
if (file_exists('/.project.ROOT')) {
|
if (file_exists('/.project.ROOT')) {
|
||||||
|
|
|
||||||
|
|
@ -36,6 +36,7 @@
|
||||||
// make sure the document_root is set
|
// make sure the document_root is set
|
||||||
$_SERVER["SCRIPT_FILENAME"] = str_replace("\\", '/', $_SERVER["SCRIPT_FILENAME"]);
|
$_SERVER["SCRIPT_FILENAME"] = str_replace("\\", '/', $_SERVER["SCRIPT_FILENAME"]);
|
||||||
if(PHP_SAPI == 'cli'){
|
if(PHP_SAPI == 'cli'){
|
||||||
|
chdir(pathinfo($_SERVER["PHP_SELF"], PATHINFO_DIRNAME));
|
||||||
$script_full_path = str_replace("\\", '/', getcwd() . '/' . $_SERVER["SCRIPT_FILENAME"]);
|
$script_full_path = str_replace("\\", '/', getcwd() . '/' . $_SERVER["SCRIPT_FILENAME"]);
|
||||||
$dirs = explode('/', pathinfo($script_full_path, PATHINFO_DIRNAME));
|
$dirs = explode('/', pathinfo($script_full_path, PATHINFO_DIRNAME));
|
||||||
if (file_exists('/.project.ROOT')) {
|
if (file_exists('/.project.ROOT')) {
|
||||||
|
|
|
||||||
|
|
@ -36,6 +36,7 @@
|
||||||
// make sure the document_root is set
|
// make sure the document_root is set
|
||||||
$_SERVER["SCRIPT_FILENAME"] = str_replace("\\", '/', $_SERVER["SCRIPT_FILENAME"]);
|
$_SERVER["SCRIPT_FILENAME"] = str_replace("\\", '/', $_SERVER["SCRIPT_FILENAME"]);
|
||||||
if(PHP_SAPI == 'cli'){
|
if(PHP_SAPI == 'cli'){
|
||||||
|
chdir(pathinfo($_SERVER["PHP_SELF"], PATHINFO_DIRNAME));
|
||||||
$script_full_path = str_replace("\\", '/', getcwd() . '/' . $_SERVER["SCRIPT_FILENAME"]);
|
$script_full_path = str_replace("\\", '/', getcwd() . '/' . $_SERVER["SCRIPT_FILENAME"]);
|
||||||
$dirs = explode('/', pathinfo($script_full_path, PATHINFO_DIRNAME));
|
$dirs = explode('/', pathinfo($script_full_path, PATHINFO_DIRNAME));
|
||||||
if (file_exists('/.project.ROOT')) {
|
if (file_exists('/.project.ROOT')) {
|
||||||
|
|
|
||||||
|
|
@ -36,6 +36,7 @@
|
||||||
// make sure the document_root is set
|
// make sure the document_root is set
|
||||||
$_SERVER["SCRIPT_FILENAME"] = str_replace("\\", '/', $_SERVER["SCRIPT_FILENAME"]);
|
$_SERVER["SCRIPT_FILENAME"] = str_replace("\\", '/', $_SERVER["SCRIPT_FILENAME"]);
|
||||||
if(PHP_SAPI == 'cli'){
|
if(PHP_SAPI == 'cli'){
|
||||||
|
chdir(pathinfo($_SERVER["PHP_SELF"], PATHINFO_DIRNAME));
|
||||||
$script_full_path = str_replace("\\", '/', getcwd() . '/' . $_SERVER["SCRIPT_FILENAME"]);
|
$script_full_path = str_replace("\\", '/', getcwd() . '/' . $_SERVER["SCRIPT_FILENAME"]);
|
||||||
$dirs = explode('/', pathinfo($script_full_path, PATHINFO_DIRNAME));
|
$dirs = explode('/', pathinfo($script_full_path, PATHINFO_DIRNAME));
|
||||||
if (file_exists('/.project.ROOT')) {
|
if (file_exists('/.project.ROOT')) {
|
||||||
|
|
|
||||||
|
|
@ -36,6 +36,7 @@
|
||||||
// make sure the document_root is set
|
// make sure the document_root is set
|
||||||
$_SERVER["SCRIPT_FILENAME"] = str_replace("\\", '/', $_SERVER["SCRIPT_FILENAME"]);
|
$_SERVER["SCRIPT_FILENAME"] = str_replace("\\", '/', $_SERVER["SCRIPT_FILENAME"]);
|
||||||
if(PHP_SAPI == 'cli'){
|
if(PHP_SAPI == 'cli'){
|
||||||
|
chdir(pathinfo($_SERVER["PHP_SELF"], PATHINFO_DIRNAME));
|
||||||
$script_full_path = str_replace("\\", '/', getcwd() . '/' . $_SERVER["SCRIPT_FILENAME"]);
|
$script_full_path = str_replace("\\", '/', getcwd() . '/' . $_SERVER["SCRIPT_FILENAME"]);
|
||||||
$dirs = explode('/', pathinfo($script_full_path, PATHINFO_DIRNAME));
|
$dirs = explode('/', pathinfo($script_full_path, PATHINFO_DIRNAME));
|
||||||
if (file_exists('/.project.ROOT')) {
|
if (file_exists('/.project.ROOT')) {
|
||||||
|
|
|
||||||
|
|
@ -36,6 +36,7 @@
|
||||||
// make sure the document_root is set
|
// make sure the document_root is set
|
||||||
$_SERVER["SCRIPT_FILENAME"] = str_replace("\\", '/', $_SERVER["SCRIPT_FILENAME"]);
|
$_SERVER["SCRIPT_FILENAME"] = str_replace("\\", '/', $_SERVER["SCRIPT_FILENAME"]);
|
||||||
if(PHP_SAPI == 'cli'){
|
if(PHP_SAPI == 'cli'){
|
||||||
|
chdir(pathinfo($_SERVER["PHP_SELF"], PATHINFO_DIRNAME));
|
||||||
$script_full_path = str_replace("\\", '/', getcwd() . '/' . $_SERVER["SCRIPT_FILENAME"]);
|
$script_full_path = str_replace("\\", '/', getcwd() . '/' . $_SERVER["SCRIPT_FILENAME"]);
|
||||||
$dirs = explode('/', pathinfo($script_full_path, PATHINFO_DIRNAME));
|
$dirs = explode('/', pathinfo($script_full_path, PATHINFO_DIRNAME));
|
||||||
if (file_exists('/.project.ROOT')) {
|
if (file_exists('/.project.ROOT')) {
|
||||||
|
|
|
||||||
|
|
@ -36,6 +36,7 @@
|
||||||
// make sure the document_root is set
|
// make sure the document_root is set
|
||||||
$_SERVER["SCRIPT_FILENAME"] = str_replace("\\", '/', $_SERVER["SCRIPT_FILENAME"]);
|
$_SERVER["SCRIPT_FILENAME"] = str_replace("\\", '/', $_SERVER["SCRIPT_FILENAME"]);
|
||||||
if(PHP_SAPI == 'cli'){
|
if(PHP_SAPI == 'cli'){
|
||||||
|
chdir(pathinfo($_SERVER["PHP_SELF"], PATHINFO_DIRNAME));
|
||||||
$script_full_path = str_replace("\\", '/', getcwd() . '/' . $_SERVER["SCRIPT_FILENAME"]);
|
$script_full_path = str_replace("\\", '/', getcwd() . '/' . $_SERVER["SCRIPT_FILENAME"]);
|
||||||
$dirs = explode('/', pathinfo($script_full_path, PATHINFO_DIRNAME));
|
$dirs = explode('/', pathinfo($script_full_path, PATHINFO_DIRNAME));
|
||||||
if (file_exists('/.project.ROOT')) {
|
if (file_exists('/.project.ROOT')) {
|
||||||
|
|
|
||||||
|
|
@ -36,6 +36,7 @@
|
||||||
// make sure the document_root is set
|
// make sure the document_root is set
|
||||||
$_SERVER["SCRIPT_FILENAME"] = str_replace("\\", '/', $_SERVER["SCRIPT_FILENAME"]);
|
$_SERVER["SCRIPT_FILENAME"] = str_replace("\\", '/', $_SERVER["SCRIPT_FILENAME"]);
|
||||||
if(PHP_SAPI == 'cli'){
|
if(PHP_SAPI == 'cli'){
|
||||||
|
chdir(pathinfo($_SERVER["PHP_SELF"], PATHINFO_DIRNAME));
|
||||||
$script_full_path = str_replace("\\", '/', getcwd() . '/' . $_SERVER["SCRIPT_FILENAME"]);
|
$script_full_path = str_replace("\\", '/', getcwd() . '/' . $_SERVER["SCRIPT_FILENAME"]);
|
||||||
$dirs = explode('/', pathinfo($script_full_path, PATHINFO_DIRNAME));
|
$dirs = explode('/', pathinfo($script_full_path, PATHINFO_DIRNAME));
|
||||||
if (file_exists('/.project.ROOT')) {
|
if (file_exists('/.project.ROOT')) {
|
||||||
|
|
|
||||||
|
|
@ -36,6 +36,7 @@
|
||||||
// make sure the document_root is set
|
// make sure the document_root is set
|
||||||
$_SERVER["SCRIPT_FILENAME"] = str_replace("\\", '/', $_SERVER["SCRIPT_FILENAME"]);
|
$_SERVER["SCRIPT_FILENAME"] = str_replace("\\", '/', $_SERVER["SCRIPT_FILENAME"]);
|
||||||
if(PHP_SAPI == 'cli'){
|
if(PHP_SAPI == 'cli'){
|
||||||
|
chdir(pathinfo($_SERVER["PHP_SELF"], PATHINFO_DIRNAME));
|
||||||
$script_full_path = str_replace("\\", '/', getcwd() . '/' . $_SERVER["SCRIPT_FILENAME"]);
|
$script_full_path = str_replace("\\", '/', getcwd() . '/' . $_SERVER["SCRIPT_FILENAME"]);
|
||||||
$dirs = explode('/', pathinfo($script_full_path, PATHINFO_DIRNAME));
|
$dirs = explode('/', pathinfo($script_full_path, PATHINFO_DIRNAME));
|
||||||
if (file_exists('/.project.ROOT')) {
|
if (file_exists('/.project.ROOT')) {
|
||||||
|
|
|
||||||
|
|
@ -36,6 +36,7 @@
|
||||||
// make sure the document_root is set
|
// make sure the document_root is set
|
||||||
$_SERVER["SCRIPT_FILENAME"] = str_replace("\\", '/', $_SERVER["SCRIPT_FILENAME"]);
|
$_SERVER["SCRIPT_FILENAME"] = str_replace("\\", '/', $_SERVER["SCRIPT_FILENAME"]);
|
||||||
if(PHP_SAPI == 'cli'){
|
if(PHP_SAPI == 'cli'){
|
||||||
|
chdir(pathinfo($_SERVER["PHP_SELF"], PATHINFO_DIRNAME));
|
||||||
$script_full_path = str_replace("\\", '/', getcwd() . '/' . $_SERVER["SCRIPT_FILENAME"]);
|
$script_full_path = str_replace("\\", '/', getcwd() . '/' . $_SERVER["SCRIPT_FILENAME"]);
|
||||||
$dirs = explode('/', pathinfo($script_full_path, PATHINFO_DIRNAME));
|
$dirs = explode('/', pathinfo($script_full_path, PATHINFO_DIRNAME));
|
||||||
if (file_exists('/.project.ROOT')) {
|
if (file_exists('/.project.ROOT')) {
|
||||||
|
|
|
||||||
|
|
@ -36,6 +36,7 @@
|
||||||
// make sure the document_root is set
|
// make sure the document_root is set
|
||||||
$_SERVER["SCRIPT_FILENAME"] = str_replace("\\", '/', $_SERVER["SCRIPT_FILENAME"]);
|
$_SERVER["SCRIPT_FILENAME"] = str_replace("\\", '/', $_SERVER["SCRIPT_FILENAME"]);
|
||||||
if(PHP_SAPI == 'cli'){
|
if(PHP_SAPI == 'cli'){
|
||||||
|
chdir(pathinfo($_SERVER["PHP_SELF"], PATHINFO_DIRNAME));
|
||||||
$script_full_path = str_replace("\\", '/', getcwd() . '/' . $_SERVER["SCRIPT_FILENAME"]);
|
$script_full_path = str_replace("\\", '/', getcwd() . '/' . $_SERVER["SCRIPT_FILENAME"]);
|
||||||
$dirs = explode('/', pathinfo($script_full_path, PATHINFO_DIRNAME));
|
$dirs = explode('/', pathinfo($script_full_path, PATHINFO_DIRNAME));
|
||||||
if (file_exists('/.project.ROOT')) {
|
if (file_exists('/.project.ROOT')) {
|
||||||
|
|
|
||||||
|
|
@ -36,6 +36,7 @@
|
||||||
// make sure the document_root is set
|
// make sure the document_root is set
|
||||||
$_SERVER["SCRIPT_FILENAME"] = str_replace("\\", '/', $_SERVER["SCRIPT_FILENAME"]);
|
$_SERVER["SCRIPT_FILENAME"] = str_replace("\\", '/', $_SERVER["SCRIPT_FILENAME"]);
|
||||||
if(PHP_SAPI == 'cli'){
|
if(PHP_SAPI == 'cli'){
|
||||||
|
chdir(pathinfo($_SERVER["PHP_SELF"], PATHINFO_DIRNAME));
|
||||||
$script_full_path = str_replace("\\", '/', getcwd() . '/' . $_SERVER["SCRIPT_FILENAME"]);
|
$script_full_path = str_replace("\\", '/', getcwd() . '/' . $_SERVER["SCRIPT_FILENAME"]);
|
||||||
$dirs = explode('/', pathinfo($script_full_path, PATHINFO_DIRNAME));
|
$dirs = explode('/', pathinfo($script_full_path, PATHINFO_DIRNAME));
|
||||||
if (file_exists('/.project.ROOT')) {
|
if (file_exists('/.project.ROOT')) {
|
||||||
|
|
|
||||||
|
|
@ -36,6 +36,7 @@
|
||||||
// make sure the document_root is set
|
// make sure the document_root is set
|
||||||
$_SERVER["SCRIPT_FILENAME"] = str_replace("\\", '/', $_SERVER["SCRIPT_FILENAME"]);
|
$_SERVER["SCRIPT_FILENAME"] = str_replace("\\", '/', $_SERVER["SCRIPT_FILENAME"]);
|
||||||
if(PHP_SAPI == 'cli'){
|
if(PHP_SAPI == 'cli'){
|
||||||
|
chdir(pathinfo($_SERVER["PHP_SELF"], PATHINFO_DIRNAME));
|
||||||
$script_full_path = str_replace("\\", '/', getcwd() . '/' . $_SERVER["SCRIPT_FILENAME"]);
|
$script_full_path = str_replace("\\", '/', getcwd() . '/' . $_SERVER["SCRIPT_FILENAME"]);
|
||||||
$dirs = explode('/', pathinfo($script_full_path, PATHINFO_DIRNAME));
|
$dirs = explode('/', pathinfo($script_full_path, PATHINFO_DIRNAME));
|
||||||
if (file_exists('/.project.ROOT')) {
|
if (file_exists('/.project.ROOT')) {
|
||||||
|
|
|
||||||
|
|
@ -36,6 +36,7 @@
|
||||||
// make sure the document_root is set
|
// make sure the document_root is set
|
||||||
$_SERVER["SCRIPT_FILENAME"] = str_replace("\\", '/', $_SERVER["SCRIPT_FILENAME"]);
|
$_SERVER["SCRIPT_FILENAME"] = str_replace("\\", '/', $_SERVER["SCRIPT_FILENAME"]);
|
||||||
if(PHP_SAPI == 'cli'){
|
if(PHP_SAPI == 'cli'){
|
||||||
|
chdir(pathinfo($_SERVER["PHP_SELF"], PATHINFO_DIRNAME));
|
||||||
$script_full_path = str_replace("\\", '/', getcwd() . '/' . $_SERVER["SCRIPT_FILENAME"]);
|
$script_full_path = str_replace("\\", '/', getcwd() . '/' . $_SERVER["SCRIPT_FILENAME"]);
|
||||||
$dirs = explode('/', pathinfo($script_full_path, PATHINFO_DIRNAME));
|
$dirs = explode('/', pathinfo($script_full_path, PATHINFO_DIRNAME));
|
||||||
if (file_exists('/.project.ROOT')) {
|
if (file_exists('/.project.ROOT')) {
|
||||||
|
|
|
||||||
|
|
@ -36,6 +36,7 @@
|
||||||
// make sure the document_root is set
|
// make sure the document_root is set
|
||||||
$_SERVER["SCRIPT_FILENAME"] = str_replace("\\", '/', $_SERVER["SCRIPT_FILENAME"]);
|
$_SERVER["SCRIPT_FILENAME"] = str_replace("\\", '/', $_SERVER["SCRIPT_FILENAME"]);
|
||||||
if(PHP_SAPI == 'cli'){
|
if(PHP_SAPI == 'cli'){
|
||||||
|
chdir(pathinfo($_SERVER["PHP_SELF"], PATHINFO_DIRNAME));
|
||||||
$script_full_path = str_replace("\\", '/', getcwd() . '/' . $_SERVER["SCRIPT_FILENAME"]);
|
$script_full_path = str_replace("\\", '/', getcwd() . '/' . $_SERVER["SCRIPT_FILENAME"]);
|
||||||
$dirs = explode('/', pathinfo($script_full_path, PATHINFO_DIRNAME));
|
$dirs = explode('/', pathinfo($script_full_path, PATHINFO_DIRNAME));
|
||||||
if (file_exists('/.project.ROOT')) {
|
if (file_exists('/.project.ROOT')) {
|
||||||
|
|
|
||||||
|
|
@ -36,6 +36,7 @@
|
||||||
// make sure the document_root is set
|
// make sure the document_root is set
|
||||||
$_SERVER["SCRIPT_FILENAME"] = str_replace("\\", '/', $_SERVER["SCRIPT_FILENAME"]);
|
$_SERVER["SCRIPT_FILENAME"] = str_replace("\\", '/', $_SERVER["SCRIPT_FILENAME"]);
|
||||||
if(PHP_SAPI == 'cli'){
|
if(PHP_SAPI == 'cli'){
|
||||||
|
chdir(pathinfo($_SERVER["PHP_SELF"], PATHINFO_DIRNAME));
|
||||||
$script_full_path = str_replace("\\", '/', getcwd() . '/' . $_SERVER["SCRIPT_FILENAME"]);
|
$script_full_path = str_replace("\\", '/', getcwd() . '/' . $_SERVER["SCRIPT_FILENAME"]);
|
||||||
$dirs = explode('/', pathinfo($script_full_path, PATHINFO_DIRNAME));
|
$dirs = explode('/', pathinfo($script_full_path, PATHINFO_DIRNAME));
|
||||||
if (file_exists('/.project.ROOT')) {
|
if (file_exists('/.project.ROOT')) {
|
||||||
|
|
|
||||||
|
|
@ -36,6 +36,7 @@
|
||||||
// make sure the document_root is set
|
// make sure the document_root is set
|
||||||
$_SERVER["SCRIPT_FILENAME"] = str_replace("\\", '/', $_SERVER["SCRIPT_FILENAME"]);
|
$_SERVER["SCRIPT_FILENAME"] = str_replace("\\", '/', $_SERVER["SCRIPT_FILENAME"]);
|
||||||
if(PHP_SAPI == 'cli'){
|
if(PHP_SAPI == 'cli'){
|
||||||
|
chdir(pathinfo($_SERVER["PHP_SELF"], PATHINFO_DIRNAME));
|
||||||
$script_full_path = str_replace("\\", '/', getcwd() . '/' . $_SERVER["SCRIPT_FILENAME"]);
|
$script_full_path = str_replace("\\", '/', getcwd() . '/' . $_SERVER["SCRIPT_FILENAME"]);
|
||||||
$dirs = explode('/', pathinfo($script_full_path, PATHINFO_DIRNAME));
|
$dirs = explode('/', pathinfo($script_full_path, PATHINFO_DIRNAME));
|
||||||
if (file_exists('/.project.ROOT')) {
|
if (file_exists('/.project.ROOT')) {
|
||||||
|
|
|
||||||
|
|
@ -36,6 +36,7 @@
|
||||||
// make sure the document_root is set
|
// make sure the document_root is set
|
||||||
$_SERVER["SCRIPT_FILENAME"] = str_replace("\\", '/', $_SERVER["SCRIPT_FILENAME"]);
|
$_SERVER["SCRIPT_FILENAME"] = str_replace("\\", '/', $_SERVER["SCRIPT_FILENAME"]);
|
||||||
if(PHP_SAPI == 'cli'){
|
if(PHP_SAPI == 'cli'){
|
||||||
|
chdir(pathinfo($_SERVER["PHP_SELF"], PATHINFO_DIRNAME));
|
||||||
$script_full_path = str_replace("\\", '/', getcwd() . '/' . $_SERVER["SCRIPT_FILENAME"]);
|
$script_full_path = str_replace("\\", '/', getcwd() . '/' . $_SERVER["SCRIPT_FILENAME"]);
|
||||||
$dirs = explode('/', pathinfo($script_full_path, PATHINFO_DIRNAME));
|
$dirs = explode('/', pathinfo($script_full_path, PATHINFO_DIRNAME));
|
||||||
if (file_exists('/.project.ROOT')) {
|
if (file_exists('/.project.ROOT')) {
|
||||||
|
|
|
||||||
|
|
@ -36,6 +36,7 @@
|
||||||
// make sure the document_root is set
|
// make sure the document_root is set
|
||||||
$_SERVER["SCRIPT_FILENAME"] = str_replace("\\", '/', $_SERVER["SCRIPT_FILENAME"]);
|
$_SERVER["SCRIPT_FILENAME"] = str_replace("\\", '/', $_SERVER["SCRIPT_FILENAME"]);
|
||||||
if(PHP_SAPI == 'cli'){
|
if(PHP_SAPI == 'cli'){
|
||||||
|
chdir(pathinfo($_SERVER["PHP_SELF"], PATHINFO_DIRNAME));
|
||||||
$script_full_path = str_replace("\\", '/', getcwd() . '/' . $_SERVER["SCRIPT_FILENAME"]);
|
$script_full_path = str_replace("\\", '/', getcwd() . '/' . $_SERVER["SCRIPT_FILENAME"]);
|
||||||
$dirs = explode('/', pathinfo($script_full_path, PATHINFO_DIRNAME));
|
$dirs = explode('/', pathinfo($script_full_path, PATHINFO_DIRNAME));
|
||||||
if (file_exists('/.project.ROOT')) {
|
if (file_exists('/.project.ROOT')) {
|
||||||
|
|
|
||||||
|
|
@ -36,6 +36,7 @@
|
||||||
// make sure the document_root is set
|
// make sure the document_root is set
|
||||||
$_SERVER["SCRIPT_FILENAME"] = str_replace("\\", '/', $_SERVER["SCRIPT_FILENAME"]);
|
$_SERVER["SCRIPT_FILENAME"] = str_replace("\\", '/', $_SERVER["SCRIPT_FILENAME"]);
|
||||||
if(PHP_SAPI == 'cli'){
|
if(PHP_SAPI == 'cli'){
|
||||||
|
chdir(pathinfo($_SERVER["PHP_SELF"], PATHINFO_DIRNAME));
|
||||||
$script_full_path = str_replace("\\", '/', getcwd() . '/' . $_SERVER["SCRIPT_FILENAME"]);
|
$script_full_path = str_replace("\\", '/', getcwd() . '/' . $_SERVER["SCRIPT_FILENAME"]);
|
||||||
$dirs = explode('/', pathinfo($script_full_path, PATHINFO_DIRNAME));
|
$dirs = explode('/', pathinfo($script_full_path, PATHINFO_DIRNAME));
|
||||||
if (file_exists('/.project.ROOT')) {
|
if (file_exists('/.project.ROOT')) {
|
||||||
|
|
|
||||||
|
|
@ -36,6 +36,7 @@
|
||||||
// make sure the document_root is set
|
// make sure the document_root is set
|
||||||
$_SERVER["SCRIPT_FILENAME"] = str_replace("\\", '/', $_SERVER["SCRIPT_FILENAME"]);
|
$_SERVER["SCRIPT_FILENAME"] = str_replace("\\", '/', $_SERVER["SCRIPT_FILENAME"]);
|
||||||
if(PHP_SAPI == 'cli'){
|
if(PHP_SAPI == 'cli'){
|
||||||
|
chdir(pathinfo($_SERVER["PHP_SELF"], PATHINFO_DIRNAME));
|
||||||
$script_full_path = str_replace("\\", '/', getcwd() . '/' . $_SERVER["SCRIPT_FILENAME"]);
|
$script_full_path = str_replace("\\", '/', getcwd() . '/' . $_SERVER["SCRIPT_FILENAME"]);
|
||||||
$dirs = explode('/', pathinfo($script_full_path, PATHINFO_DIRNAME));
|
$dirs = explode('/', pathinfo($script_full_path, PATHINFO_DIRNAME));
|
||||||
if (file_exists('/.project.ROOT')) {
|
if (file_exists('/.project.ROOT')) {
|
||||||
|
|
|
||||||
|
|
@ -36,6 +36,7 @@
|
||||||
// make sure the document_root is set
|
// make sure the document_root is set
|
||||||
$_SERVER["SCRIPT_FILENAME"] = str_replace("\\", '/', $_SERVER["SCRIPT_FILENAME"]);
|
$_SERVER["SCRIPT_FILENAME"] = str_replace("\\", '/', $_SERVER["SCRIPT_FILENAME"]);
|
||||||
if(PHP_SAPI == 'cli'){
|
if(PHP_SAPI == 'cli'){
|
||||||
|
chdir(pathinfo($_SERVER["PHP_SELF"], PATHINFO_DIRNAME));
|
||||||
$script_full_path = str_replace("\\", '/', getcwd() . '/' . $_SERVER["SCRIPT_FILENAME"]);
|
$script_full_path = str_replace("\\", '/', getcwd() . '/' . $_SERVER["SCRIPT_FILENAME"]);
|
||||||
$dirs = explode('/', pathinfo($script_full_path, PATHINFO_DIRNAME));
|
$dirs = explode('/', pathinfo($script_full_path, PATHINFO_DIRNAME));
|
||||||
if (file_exists('/.project.ROOT')) {
|
if (file_exists('/.project.ROOT')) {
|
||||||
|
|
|
||||||
|
|
@ -36,6 +36,7 @@
|
||||||
// make sure the document_root is set
|
// make sure the document_root is set
|
||||||
$_SERVER["SCRIPT_FILENAME"] = str_replace("\\", '/', $_SERVER["SCRIPT_FILENAME"]);
|
$_SERVER["SCRIPT_FILENAME"] = str_replace("\\", '/', $_SERVER["SCRIPT_FILENAME"]);
|
||||||
if(PHP_SAPI == 'cli'){
|
if(PHP_SAPI == 'cli'){
|
||||||
|
chdir(pathinfo($_SERVER["PHP_SELF"], PATHINFO_DIRNAME));
|
||||||
$script_full_path = str_replace("\\", '/', getcwd() . '/' . $_SERVER["SCRIPT_FILENAME"]);
|
$script_full_path = str_replace("\\", '/', getcwd() . '/' . $_SERVER["SCRIPT_FILENAME"]);
|
||||||
$dirs = explode('/', pathinfo($script_full_path, PATHINFO_DIRNAME));
|
$dirs = explode('/', pathinfo($script_full_path, PATHINFO_DIRNAME));
|
||||||
if (file_exists('/.project.ROOT')) {
|
if (file_exists('/.project.ROOT')) {
|
||||||
|
|
|
||||||
|
|
@ -36,6 +36,7 @@
|
||||||
// make sure the document_root is set
|
// make sure the document_root is set
|
||||||
$_SERVER["SCRIPT_FILENAME"] = str_replace("\\", '/', $_SERVER["SCRIPT_FILENAME"]);
|
$_SERVER["SCRIPT_FILENAME"] = str_replace("\\", '/', $_SERVER["SCRIPT_FILENAME"]);
|
||||||
if(PHP_SAPI == 'cli'){
|
if(PHP_SAPI == 'cli'){
|
||||||
|
chdir(pathinfo($_SERVER["PHP_SELF"], PATHINFO_DIRNAME));
|
||||||
$script_full_path = str_replace("\\", '/', getcwd() . '/' . $_SERVER["SCRIPT_FILENAME"]);
|
$script_full_path = str_replace("\\", '/', getcwd() . '/' . $_SERVER["SCRIPT_FILENAME"]);
|
||||||
$dirs = explode('/', pathinfo($script_full_path, PATHINFO_DIRNAME));
|
$dirs = explode('/', pathinfo($script_full_path, PATHINFO_DIRNAME));
|
||||||
if (file_exists('/.project.ROOT')) {
|
if (file_exists('/.project.ROOT')) {
|
||||||
|
|
|
||||||
|
|
@ -36,6 +36,7 @@
|
||||||
// make sure the document_root is set
|
// make sure the document_root is set
|
||||||
$_SERVER["SCRIPT_FILENAME"] = str_replace("\\", '/', $_SERVER["SCRIPT_FILENAME"]);
|
$_SERVER["SCRIPT_FILENAME"] = str_replace("\\", '/', $_SERVER["SCRIPT_FILENAME"]);
|
||||||
if(PHP_SAPI == 'cli'){
|
if(PHP_SAPI == 'cli'){
|
||||||
|
chdir(pathinfo($_SERVER["PHP_SELF"], PATHINFO_DIRNAME));
|
||||||
$script_full_path = str_replace("\\", '/', getcwd() . '/' . $_SERVER["SCRIPT_FILENAME"]);
|
$script_full_path = str_replace("\\", '/', getcwd() . '/' . $_SERVER["SCRIPT_FILENAME"]);
|
||||||
$dirs = explode('/', pathinfo($script_full_path, PATHINFO_DIRNAME));
|
$dirs = explode('/', pathinfo($script_full_path, PATHINFO_DIRNAME));
|
||||||
if (file_exists('/.project.ROOT')) {
|
if (file_exists('/.project.ROOT')) {
|
||||||
|
|
|
||||||
|
|
@ -36,6 +36,7 @@
|
||||||
// make sure the document_root is set
|
// make sure the document_root is set
|
||||||
$_SERVER["SCRIPT_FILENAME"] = str_replace("\\", '/', $_SERVER["SCRIPT_FILENAME"]);
|
$_SERVER["SCRIPT_FILENAME"] = str_replace("\\", '/', $_SERVER["SCRIPT_FILENAME"]);
|
||||||
if(PHP_SAPI == 'cli'){
|
if(PHP_SAPI == 'cli'){
|
||||||
|
chdir(pathinfo($_SERVER["PHP_SELF"], PATHINFO_DIRNAME));
|
||||||
$script_full_path = str_replace("\\", '/', getcwd() . '/' . $_SERVER["SCRIPT_FILENAME"]);
|
$script_full_path = str_replace("\\", '/', getcwd() . '/' . $_SERVER["SCRIPT_FILENAME"]);
|
||||||
$dirs = explode('/', pathinfo($script_full_path, PATHINFO_DIRNAME));
|
$dirs = explode('/', pathinfo($script_full_path, PATHINFO_DIRNAME));
|
||||||
if (file_exists('/.project.ROOT')) {
|
if (file_exists('/.project.ROOT')) {
|
||||||
|
|
|
||||||
|
|
@ -36,6 +36,7 @@
|
||||||
// make sure the document_root is set
|
// make sure the document_root is set
|
||||||
$_SERVER["SCRIPT_FILENAME"] = str_replace("\\", '/', $_SERVER["SCRIPT_FILENAME"]);
|
$_SERVER["SCRIPT_FILENAME"] = str_replace("\\", '/', $_SERVER["SCRIPT_FILENAME"]);
|
||||||
if(PHP_SAPI == 'cli'){
|
if(PHP_SAPI == 'cli'){
|
||||||
|
chdir(pathinfo($_SERVER["PHP_SELF"], PATHINFO_DIRNAME));
|
||||||
$script_full_path = str_replace("\\", '/', getcwd() . '/' . $_SERVER["SCRIPT_FILENAME"]);
|
$script_full_path = str_replace("\\", '/', getcwd() . '/' . $_SERVER["SCRIPT_FILENAME"]);
|
||||||
$dirs = explode('/', pathinfo($script_full_path, PATHINFO_DIRNAME));
|
$dirs = explode('/', pathinfo($script_full_path, PATHINFO_DIRNAME));
|
||||||
if (file_exists('/.project.ROOT')) {
|
if (file_exists('/.project.ROOT')) {
|
||||||
|
|
|
||||||
|
|
@ -36,6 +36,7 @@
|
||||||
// make sure the document_root is set
|
// make sure the document_root is set
|
||||||
$_SERVER["SCRIPT_FILENAME"] = str_replace("\\", '/', $_SERVER["SCRIPT_FILENAME"]);
|
$_SERVER["SCRIPT_FILENAME"] = str_replace("\\", '/', $_SERVER["SCRIPT_FILENAME"]);
|
||||||
if(PHP_SAPI == 'cli'){
|
if(PHP_SAPI == 'cli'){
|
||||||
|
chdir(pathinfo($_SERVER["PHP_SELF"], PATHINFO_DIRNAME));
|
||||||
$script_full_path = str_replace("\\", '/', getcwd() . '/' . $_SERVER["SCRIPT_FILENAME"]);
|
$script_full_path = str_replace("\\", '/', getcwd() . '/' . $_SERVER["SCRIPT_FILENAME"]);
|
||||||
$dirs = explode('/', pathinfo($script_full_path, PATHINFO_DIRNAME));
|
$dirs = explode('/', pathinfo($script_full_path, PATHINFO_DIRNAME));
|
||||||
if (file_exists('/.project.ROOT')) {
|
if (file_exists('/.project.ROOT')) {
|
||||||
|
|
|
||||||
|
|
@ -36,6 +36,7 @@
|
||||||
// make sure the document_root is set
|
// make sure the document_root is set
|
||||||
$_SERVER["SCRIPT_FILENAME"] = str_replace("\\", '/', $_SERVER["SCRIPT_FILENAME"]);
|
$_SERVER["SCRIPT_FILENAME"] = str_replace("\\", '/', $_SERVER["SCRIPT_FILENAME"]);
|
||||||
if(PHP_SAPI == 'cli'){
|
if(PHP_SAPI == 'cli'){
|
||||||
|
chdir(pathinfo($_SERVER["PHP_SELF"], PATHINFO_DIRNAME));
|
||||||
$script_full_path = str_replace("\\", '/', getcwd() . '/' . $_SERVER["SCRIPT_FILENAME"]);
|
$script_full_path = str_replace("\\", '/', getcwd() . '/' . $_SERVER["SCRIPT_FILENAME"]);
|
||||||
$dirs = explode('/', pathinfo($script_full_path, PATHINFO_DIRNAME));
|
$dirs = explode('/', pathinfo($script_full_path, PATHINFO_DIRNAME));
|
||||||
if (file_exists('/.project.ROOT')) {
|
if (file_exists('/.project.ROOT')) {
|
||||||
|
|
|
||||||
|
|
@ -36,6 +36,7 @@
|
||||||
// make sure the document_root is set
|
// make sure the document_root is set
|
||||||
$_SERVER["SCRIPT_FILENAME"] = str_replace("\\", '/', $_SERVER["SCRIPT_FILENAME"]);
|
$_SERVER["SCRIPT_FILENAME"] = str_replace("\\", '/', $_SERVER["SCRIPT_FILENAME"]);
|
||||||
if(PHP_SAPI == 'cli'){
|
if(PHP_SAPI == 'cli'){
|
||||||
|
chdir(pathinfo($_SERVER["PHP_SELF"], PATHINFO_DIRNAME));
|
||||||
$script_full_path = str_replace("\\", '/', getcwd() . '/' . $_SERVER["SCRIPT_FILENAME"]);
|
$script_full_path = str_replace("\\", '/', getcwd() . '/' . $_SERVER["SCRIPT_FILENAME"]);
|
||||||
$dirs = explode('/', pathinfo($script_full_path, PATHINFO_DIRNAME));
|
$dirs = explode('/', pathinfo($script_full_path, PATHINFO_DIRNAME));
|
||||||
if (file_exists('/.project.ROOT')) {
|
if (file_exists('/.project.ROOT')) {
|
||||||
|
|
|
||||||
|
|
@ -36,6 +36,7 @@
|
||||||
// make sure the document_root is set
|
// make sure the document_root is set
|
||||||
$_SERVER["SCRIPT_FILENAME"] = str_replace("\\", '/', $_SERVER["SCRIPT_FILENAME"]);
|
$_SERVER["SCRIPT_FILENAME"] = str_replace("\\", '/', $_SERVER["SCRIPT_FILENAME"]);
|
||||||
if(PHP_SAPI == 'cli'){
|
if(PHP_SAPI == 'cli'){
|
||||||
|
chdir(pathinfo($_SERVER["PHP_SELF"], PATHINFO_DIRNAME));
|
||||||
$script_full_path = str_replace("\\", '/', getcwd() . '/' . $_SERVER["SCRIPT_FILENAME"]);
|
$script_full_path = str_replace("\\", '/', getcwd() . '/' . $_SERVER["SCRIPT_FILENAME"]);
|
||||||
$dirs = explode('/', pathinfo($script_full_path, PATHINFO_DIRNAME));
|
$dirs = explode('/', pathinfo($script_full_path, PATHINFO_DIRNAME));
|
||||||
if (file_exists('/.project.ROOT')) {
|
if (file_exists('/.project.ROOT')) {
|
||||||
|
|
|
||||||
|
|
@ -36,6 +36,7 @@
|
||||||
// make sure the document_root is set
|
// make sure the document_root is set
|
||||||
$_SERVER["SCRIPT_FILENAME"] = str_replace("\\", '/', $_SERVER["SCRIPT_FILENAME"]);
|
$_SERVER["SCRIPT_FILENAME"] = str_replace("\\", '/', $_SERVER["SCRIPT_FILENAME"]);
|
||||||
if(PHP_SAPI == 'cli'){
|
if(PHP_SAPI == 'cli'){
|
||||||
|
chdir(pathinfo($_SERVER["PHP_SELF"], PATHINFO_DIRNAME));
|
||||||
$script_full_path = str_replace("\\", '/', getcwd() . '/' . $_SERVER["SCRIPT_FILENAME"]);
|
$script_full_path = str_replace("\\", '/', getcwd() . '/' . $_SERVER["SCRIPT_FILENAME"]);
|
||||||
$dirs = explode('/', pathinfo($script_full_path, PATHINFO_DIRNAME));
|
$dirs = explode('/', pathinfo($script_full_path, PATHINFO_DIRNAME));
|
||||||
if (file_exists('/.project.ROOT')) {
|
if (file_exists('/.project.ROOT')) {
|
||||||
|
|
|
||||||
|
|
@ -36,6 +36,7 @@
|
||||||
// make sure the document_root is set
|
// make sure the document_root is set
|
||||||
$_SERVER["SCRIPT_FILENAME"] = str_replace("\\", '/', $_SERVER["SCRIPT_FILENAME"]);
|
$_SERVER["SCRIPT_FILENAME"] = str_replace("\\", '/', $_SERVER["SCRIPT_FILENAME"]);
|
||||||
if(PHP_SAPI == 'cli'){
|
if(PHP_SAPI == 'cli'){
|
||||||
|
chdir(pathinfo($_SERVER["PHP_SELF"], PATHINFO_DIRNAME));
|
||||||
$script_full_path = str_replace("\\", '/', getcwd() . '/' . $_SERVER["SCRIPT_FILENAME"]);
|
$script_full_path = str_replace("\\", '/', getcwd() . '/' . $_SERVER["SCRIPT_FILENAME"]);
|
||||||
$dirs = explode('/', pathinfo($script_full_path, PATHINFO_DIRNAME));
|
$dirs = explode('/', pathinfo($script_full_path, PATHINFO_DIRNAME));
|
||||||
if (file_exists('/.project.ROOT')) {
|
if (file_exists('/.project.ROOT')) {
|
||||||
|
|
|
||||||
|
|
@ -36,6 +36,7 @@
|
||||||
// make sure the document_root is set
|
// make sure the document_root is set
|
||||||
$_SERVER["SCRIPT_FILENAME"] = str_replace("\\", '/', $_SERVER["SCRIPT_FILENAME"]);
|
$_SERVER["SCRIPT_FILENAME"] = str_replace("\\", '/', $_SERVER["SCRIPT_FILENAME"]);
|
||||||
if(PHP_SAPI == 'cli'){
|
if(PHP_SAPI == 'cli'){
|
||||||
|
chdir(pathinfo($_SERVER["PHP_SELF"], PATHINFO_DIRNAME));
|
||||||
$script_full_path = str_replace("\\", '/', getcwd() . '/' . $_SERVER["SCRIPT_FILENAME"]);
|
$script_full_path = str_replace("\\", '/', getcwd() . '/' . $_SERVER["SCRIPT_FILENAME"]);
|
||||||
$dirs = explode('/', pathinfo($script_full_path, PATHINFO_DIRNAME));
|
$dirs = explode('/', pathinfo($script_full_path, PATHINFO_DIRNAME));
|
||||||
if (file_exists('/.project.ROOT')) {
|
if (file_exists('/.project.ROOT')) {
|
||||||
|
|
|
||||||
|
|
@ -36,6 +36,7 @@
|
||||||
// make sure the document_root is set
|
// make sure the document_root is set
|
||||||
$_SERVER["SCRIPT_FILENAME"] = str_replace("\\", '/', $_SERVER["SCRIPT_FILENAME"]);
|
$_SERVER["SCRIPT_FILENAME"] = str_replace("\\", '/', $_SERVER["SCRIPT_FILENAME"]);
|
||||||
if(PHP_SAPI == 'cli'){
|
if(PHP_SAPI == 'cli'){
|
||||||
|
chdir(pathinfo($_SERVER["PHP_SELF"], PATHINFO_DIRNAME));
|
||||||
$script_full_path = str_replace("\\", '/', getcwd() . '/' . $_SERVER["SCRIPT_FILENAME"]);
|
$script_full_path = str_replace("\\", '/', getcwd() . '/' . $_SERVER["SCRIPT_FILENAME"]);
|
||||||
$dirs = explode('/', pathinfo($script_full_path, PATHINFO_DIRNAME));
|
$dirs = explode('/', pathinfo($script_full_path, PATHINFO_DIRNAME));
|
||||||
if (file_exists('/.project.ROOT')) {
|
if (file_exists('/.project.ROOT')) {
|
||||||
|
|
|
||||||
|
|
@ -36,6 +36,7 @@
|
||||||
// make sure the document_root is set
|
// make sure the document_root is set
|
||||||
$_SERVER["SCRIPT_FILENAME"] = str_replace("\\", '/', $_SERVER["SCRIPT_FILENAME"]);
|
$_SERVER["SCRIPT_FILENAME"] = str_replace("\\", '/', $_SERVER["SCRIPT_FILENAME"]);
|
||||||
if(PHP_SAPI == 'cli'){
|
if(PHP_SAPI == 'cli'){
|
||||||
|
chdir(pathinfo($_SERVER["PHP_SELF"], PATHINFO_DIRNAME));
|
||||||
$script_full_path = str_replace("\\", '/', getcwd() . '/' . $_SERVER["SCRIPT_FILENAME"]);
|
$script_full_path = str_replace("\\", '/', getcwd() . '/' . $_SERVER["SCRIPT_FILENAME"]);
|
||||||
$dirs = explode('/', pathinfo($script_full_path, PATHINFO_DIRNAME));
|
$dirs = explode('/', pathinfo($script_full_path, PATHINFO_DIRNAME));
|
||||||
if (file_exists('/.project.ROOT')) {
|
if (file_exists('/.project.ROOT')) {
|
||||||
|
|
|
||||||
|
|
@ -36,6 +36,7 @@
|
||||||
// make sure the document_root is set
|
// make sure the document_root is set
|
||||||
$_SERVER["SCRIPT_FILENAME"] = str_replace("\\", '/', $_SERVER["SCRIPT_FILENAME"]);
|
$_SERVER["SCRIPT_FILENAME"] = str_replace("\\", '/', $_SERVER["SCRIPT_FILENAME"]);
|
||||||
if(PHP_SAPI == 'cli'){
|
if(PHP_SAPI == 'cli'){
|
||||||
|
chdir(pathinfo($_SERVER["PHP_SELF"], PATHINFO_DIRNAME));
|
||||||
$script_full_path = str_replace("\\", '/', getcwd() . '/' . $_SERVER["SCRIPT_FILENAME"]);
|
$script_full_path = str_replace("\\", '/', getcwd() . '/' . $_SERVER["SCRIPT_FILENAME"]);
|
||||||
$dirs = explode('/', pathinfo($script_full_path, PATHINFO_DIRNAME));
|
$dirs = explode('/', pathinfo($script_full_path, PATHINFO_DIRNAME));
|
||||||
if (file_exists('/.project.ROOT')) {
|
if (file_exists('/.project.ROOT')) {
|
||||||
|
|
|
||||||
|
|
@ -36,6 +36,7 @@
|
||||||
// make sure the document_root is set
|
// make sure the document_root is set
|
||||||
$_SERVER["SCRIPT_FILENAME"] = str_replace("\\", '/', $_SERVER["SCRIPT_FILENAME"]);
|
$_SERVER["SCRIPT_FILENAME"] = str_replace("\\", '/', $_SERVER["SCRIPT_FILENAME"]);
|
||||||
if(PHP_SAPI == 'cli'){
|
if(PHP_SAPI == 'cli'){
|
||||||
|
chdir(pathinfo($_SERVER["PHP_SELF"], PATHINFO_DIRNAME));
|
||||||
$script_full_path = str_replace("\\", '/', getcwd() . '/' . $_SERVER["SCRIPT_FILENAME"]);
|
$script_full_path = str_replace("\\", '/', getcwd() . '/' . $_SERVER["SCRIPT_FILENAME"]);
|
||||||
$dirs = explode('/', pathinfo($script_full_path, PATHINFO_DIRNAME));
|
$dirs = explode('/', pathinfo($script_full_path, PATHINFO_DIRNAME));
|
||||||
if (file_exists('/.project.ROOT')) {
|
if (file_exists('/.project.ROOT')) {
|
||||||
|
|
|
||||||
|
|
@ -36,6 +36,7 @@
|
||||||
// make sure the document_root is set
|
// make sure the document_root is set
|
||||||
$_SERVER["SCRIPT_FILENAME"] = str_replace("\\", '/', $_SERVER["SCRIPT_FILENAME"]);
|
$_SERVER["SCRIPT_FILENAME"] = str_replace("\\", '/', $_SERVER["SCRIPT_FILENAME"]);
|
||||||
if(PHP_SAPI == 'cli'){
|
if(PHP_SAPI == 'cli'){
|
||||||
|
chdir(pathinfo($_SERVER["PHP_SELF"], PATHINFO_DIRNAME));
|
||||||
$script_full_path = str_replace("\\", '/', getcwd() . '/' . $_SERVER["SCRIPT_FILENAME"]);
|
$script_full_path = str_replace("\\", '/', getcwd() . '/' . $_SERVER["SCRIPT_FILENAME"]);
|
||||||
$dirs = explode('/', pathinfo($script_full_path, PATHINFO_DIRNAME));
|
$dirs = explode('/', pathinfo($script_full_path, PATHINFO_DIRNAME));
|
||||||
if (file_exists('/.project.ROOT')) {
|
if (file_exists('/.project.ROOT')) {
|
||||||
|
|
|
||||||
|
|
@ -36,6 +36,7 @@
|
||||||
// make sure the document_root is set
|
// make sure the document_root is set
|
||||||
$_SERVER["SCRIPT_FILENAME"] = str_replace("\\", '/', $_SERVER["SCRIPT_FILENAME"]);
|
$_SERVER["SCRIPT_FILENAME"] = str_replace("\\", '/', $_SERVER["SCRIPT_FILENAME"]);
|
||||||
if(PHP_SAPI == 'cli'){
|
if(PHP_SAPI == 'cli'){
|
||||||
|
chdir(pathinfo($_SERVER["PHP_SELF"], PATHINFO_DIRNAME));
|
||||||
$script_full_path = str_replace("\\", '/', getcwd() . '/' . $_SERVER["SCRIPT_FILENAME"]);
|
$script_full_path = str_replace("\\", '/', getcwd() . '/' . $_SERVER["SCRIPT_FILENAME"]);
|
||||||
$dirs = explode('/', pathinfo($script_full_path, PATHINFO_DIRNAME));
|
$dirs = explode('/', pathinfo($script_full_path, PATHINFO_DIRNAME));
|
||||||
if (file_exists('/.project.ROOT')) {
|
if (file_exists('/.project.ROOT')) {
|
||||||
|
|
|
||||||
|
|
@ -36,6 +36,7 @@
|
||||||
// make sure the document_root is set
|
// make sure the document_root is set
|
||||||
$_SERVER["SCRIPT_FILENAME"] = str_replace("\\", '/', $_SERVER["SCRIPT_FILENAME"]);
|
$_SERVER["SCRIPT_FILENAME"] = str_replace("\\", '/', $_SERVER["SCRIPT_FILENAME"]);
|
||||||
if(PHP_SAPI == 'cli'){
|
if(PHP_SAPI == 'cli'){
|
||||||
|
chdir(pathinfo($_SERVER["PHP_SELF"], PATHINFO_DIRNAME));
|
||||||
$script_full_path = str_replace("\\", '/', getcwd() . '/' . $_SERVER["SCRIPT_FILENAME"]);
|
$script_full_path = str_replace("\\", '/', getcwd() . '/' . $_SERVER["SCRIPT_FILENAME"]);
|
||||||
$dirs = explode('/', pathinfo($script_full_path, PATHINFO_DIRNAME));
|
$dirs = explode('/', pathinfo($script_full_path, PATHINFO_DIRNAME));
|
||||||
if (file_exists('/.project.ROOT')) {
|
if (file_exists('/.project.ROOT')) {
|
||||||
|
|
|
||||||
|
|
@ -36,6 +36,7 @@
|
||||||
// make sure the document_root is set
|
// make sure the document_root is set
|
||||||
$_SERVER["SCRIPT_FILENAME"] = str_replace("\\", '/', $_SERVER["SCRIPT_FILENAME"]);
|
$_SERVER["SCRIPT_FILENAME"] = str_replace("\\", '/', $_SERVER["SCRIPT_FILENAME"]);
|
||||||
if(PHP_SAPI == 'cli'){
|
if(PHP_SAPI == 'cli'){
|
||||||
|
chdir(pathinfo($_SERVER["PHP_SELF"], PATHINFO_DIRNAME));
|
||||||
$script_full_path = str_replace("\\", '/', getcwd() . '/' . $_SERVER["SCRIPT_FILENAME"]);
|
$script_full_path = str_replace("\\", '/', getcwd() . '/' . $_SERVER["SCRIPT_FILENAME"]);
|
||||||
$dirs = explode('/', pathinfo($script_full_path, PATHINFO_DIRNAME));
|
$dirs = explode('/', pathinfo($script_full_path, PATHINFO_DIRNAME));
|
||||||
if (file_exists('/.project.ROOT')) {
|
if (file_exists('/.project.ROOT')) {
|
||||||
|
|
|
||||||
|
|
@ -36,6 +36,7 @@
|
||||||
// make sure the document_root is set
|
// make sure the document_root is set
|
||||||
$_SERVER["SCRIPT_FILENAME"] = str_replace("\\", '/', $_SERVER["SCRIPT_FILENAME"]);
|
$_SERVER["SCRIPT_FILENAME"] = str_replace("\\", '/', $_SERVER["SCRIPT_FILENAME"]);
|
||||||
if(PHP_SAPI == 'cli'){
|
if(PHP_SAPI == 'cli'){
|
||||||
|
chdir(pathinfo($_SERVER["PHP_SELF"], PATHINFO_DIRNAME));
|
||||||
$script_full_path = str_replace("\\", '/', getcwd() . '/' . $_SERVER["SCRIPT_FILENAME"]);
|
$script_full_path = str_replace("\\", '/', getcwd() . '/' . $_SERVER["SCRIPT_FILENAME"]);
|
||||||
$dirs = explode('/', pathinfo($script_full_path, PATHINFO_DIRNAME));
|
$dirs = explode('/', pathinfo($script_full_path, PATHINFO_DIRNAME));
|
||||||
if (file_exists('/.project.ROOT')) {
|
if (file_exists('/.project.ROOT')) {
|
||||||
|
|
|
||||||
|
|
@ -36,6 +36,7 @@
|
||||||
// make sure the document_root is set
|
// make sure the document_root is set
|
||||||
$_SERVER["SCRIPT_FILENAME"] = str_replace("\\", '/', $_SERVER["SCRIPT_FILENAME"]);
|
$_SERVER["SCRIPT_FILENAME"] = str_replace("\\", '/', $_SERVER["SCRIPT_FILENAME"]);
|
||||||
if(PHP_SAPI == 'cli'){
|
if(PHP_SAPI == 'cli'){
|
||||||
|
chdir(pathinfo($_SERVER["PHP_SELF"], PATHINFO_DIRNAME));
|
||||||
$script_full_path = str_replace("\\", '/', getcwd() . '/' . $_SERVER["SCRIPT_FILENAME"]);
|
$script_full_path = str_replace("\\", '/', getcwd() . '/' . $_SERVER["SCRIPT_FILENAME"]);
|
||||||
$dirs = explode('/', pathinfo($script_full_path, PATHINFO_DIRNAME));
|
$dirs = explode('/', pathinfo($script_full_path, PATHINFO_DIRNAME));
|
||||||
if (file_exists('/.project.ROOT')) {
|
if (file_exists('/.project.ROOT')) {
|
||||||
|
|
|
||||||
|
|
@ -36,6 +36,7 @@
|
||||||
// make sure the document_root is set
|
// make sure the document_root is set
|
||||||
$_SERVER["SCRIPT_FILENAME"] = str_replace("\\", '/', $_SERVER["SCRIPT_FILENAME"]);
|
$_SERVER["SCRIPT_FILENAME"] = str_replace("\\", '/', $_SERVER["SCRIPT_FILENAME"]);
|
||||||
if(PHP_SAPI == 'cli'){
|
if(PHP_SAPI == 'cli'){
|
||||||
|
chdir(pathinfo($_SERVER["PHP_SELF"], PATHINFO_DIRNAME));
|
||||||
$script_full_path = str_replace("\\", '/', getcwd() . '/' . $_SERVER["SCRIPT_FILENAME"]);
|
$script_full_path = str_replace("\\", '/', getcwd() . '/' . $_SERVER["SCRIPT_FILENAME"]);
|
||||||
$dirs = explode('/', pathinfo($script_full_path, PATHINFO_DIRNAME));
|
$dirs = explode('/', pathinfo($script_full_path, PATHINFO_DIRNAME));
|
||||||
if (file_exists('/.project.ROOT')) {
|
if (file_exists('/.project.ROOT')) {
|
||||||
|
|
|
||||||
|
|
@ -36,6 +36,7 @@
|
||||||
// make sure the document_root is set
|
// make sure the document_root is set
|
||||||
$_SERVER["SCRIPT_FILENAME"] = str_replace("\\", '/', $_SERVER["SCRIPT_FILENAME"]);
|
$_SERVER["SCRIPT_FILENAME"] = str_replace("\\", '/', $_SERVER["SCRIPT_FILENAME"]);
|
||||||
if(PHP_SAPI == 'cli'){
|
if(PHP_SAPI == 'cli'){
|
||||||
|
chdir(pathinfo($_SERVER["PHP_SELF"], PATHINFO_DIRNAME));
|
||||||
$script_full_path = str_replace("\\", '/', getcwd() . '/' . $_SERVER["SCRIPT_FILENAME"]);
|
$script_full_path = str_replace("\\", '/', getcwd() . '/' . $_SERVER["SCRIPT_FILENAME"]);
|
||||||
$dirs = explode('/', pathinfo($script_full_path, PATHINFO_DIRNAME));
|
$dirs = explode('/', pathinfo($script_full_path, PATHINFO_DIRNAME));
|
||||||
if (file_exists('/.project.ROOT')) {
|
if (file_exists('/.project.ROOT')) {
|
||||||
|
|
|
||||||
|
|
@ -36,6 +36,7 @@
|
||||||
// make sure the document_root is set
|
// make sure the document_root is set
|
||||||
$_SERVER["SCRIPT_FILENAME"] = str_replace("\\", '/', $_SERVER["SCRIPT_FILENAME"]);
|
$_SERVER["SCRIPT_FILENAME"] = str_replace("\\", '/', $_SERVER["SCRIPT_FILENAME"]);
|
||||||
if(PHP_SAPI == 'cli'){
|
if(PHP_SAPI == 'cli'){
|
||||||
|
chdir(pathinfo($_SERVER["PHP_SELF"], PATHINFO_DIRNAME));
|
||||||
$script_full_path = str_replace("\\", '/', getcwd() . '/' . $_SERVER["SCRIPT_FILENAME"]);
|
$script_full_path = str_replace("\\", '/', getcwd() . '/' . $_SERVER["SCRIPT_FILENAME"]);
|
||||||
$dirs = explode('/', pathinfo($script_full_path, PATHINFO_DIRNAME));
|
$dirs = explode('/', pathinfo($script_full_path, PATHINFO_DIRNAME));
|
||||||
if (file_exists('/.project.ROOT')) {
|
if (file_exists('/.project.ROOT')) {
|
||||||
|
|
|
||||||
|
|
@ -36,6 +36,7 @@
|
||||||
// make sure the document_root is set
|
// make sure the document_root is set
|
||||||
$_SERVER["SCRIPT_FILENAME"] = str_replace("\\", '/', $_SERVER["SCRIPT_FILENAME"]);
|
$_SERVER["SCRIPT_FILENAME"] = str_replace("\\", '/', $_SERVER["SCRIPT_FILENAME"]);
|
||||||
if(PHP_SAPI == 'cli'){
|
if(PHP_SAPI == 'cli'){
|
||||||
|
chdir(pathinfo($_SERVER["PHP_SELF"], PATHINFO_DIRNAME));
|
||||||
$script_full_path = str_replace("\\", '/', getcwd() . '/' . $_SERVER["SCRIPT_FILENAME"]);
|
$script_full_path = str_replace("\\", '/', getcwd() . '/' . $_SERVER["SCRIPT_FILENAME"]);
|
||||||
$dirs = explode('/', pathinfo($script_full_path, PATHINFO_DIRNAME));
|
$dirs = explode('/', pathinfo($script_full_path, PATHINFO_DIRNAME));
|
||||||
if (file_exists('/.project.ROOT')) {
|
if (file_exists('/.project.ROOT')) {
|
||||||
|
|
|
||||||
|
|
@ -36,6 +36,7 @@
|
||||||
// make sure the document_root is set
|
// make sure the document_root is set
|
||||||
$_SERVER["SCRIPT_FILENAME"] = str_replace("\\", '/', $_SERVER["SCRIPT_FILENAME"]);
|
$_SERVER["SCRIPT_FILENAME"] = str_replace("\\", '/', $_SERVER["SCRIPT_FILENAME"]);
|
||||||
if(PHP_SAPI == 'cli'){
|
if(PHP_SAPI == 'cli'){
|
||||||
|
chdir(pathinfo($_SERVER["PHP_SELF"], PATHINFO_DIRNAME));
|
||||||
$script_full_path = str_replace("\\", '/', getcwd() . '/' . $_SERVER["SCRIPT_FILENAME"]);
|
$script_full_path = str_replace("\\", '/', getcwd() . '/' . $_SERVER["SCRIPT_FILENAME"]);
|
||||||
$dirs = explode('/', pathinfo($script_full_path, PATHINFO_DIRNAME));
|
$dirs = explode('/', pathinfo($script_full_path, PATHINFO_DIRNAME));
|
||||||
if (file_exists('/.project.ROOT')) {
|
if (file_exists('/.project.ROOT')) {
|
||||||
|
|
|
||||||
|
|
@ -36,6 +36,7 @@
|
||||||
// make sure the document_root is set
|
// make sure the document_root is set
|
||||||
$_SERVER["SCRIPT_FILENAME"] = str_replace("\\", '/', $_SERVER["SCRIPT_FILENAME"]);
|
$_SERVER["SCRIPT_FILENAME"] = str_replace("\\", '/', $_SERVER["SCRIPT_FILENAME"]);
|
||||||
if(PHP_SAPI == 'cli'){
|
if(PHP_SAPI == 'cli'){
|
||||||
|
chdir(pathinfo($_SERVER["PHP_SELF"], PATHINFO_DIRNAME));
|
||||||
$script_full_path = str_replace("\\", '/', getcwd() . '/' . $_SERVER["SCRIPT_FILENAME"]);
|
$script_full_path = str_replace("\\", '/', getcwd() . '/' . $_SERVER["SCRIPT_FILENAME"]);
|
||||||
$dirs = explode('/', pathinfo($script_full_path, PATHINFO_DIRNAME));
|
$dirs = explode('/', pathinfo($script_full_path, PATHINFO_DIRNAME));
|
||||||
if (file_exists('/.project.ROOT')) {
|
if (file_exists('/.project.ROOT')) {
|
||||||
|
|
|
||||||
|
|
@ -36,6 +36,7 @@
|
||||||
// make sure the document_root is set
|
// make sure the document_root is set
|
||||||
$_SERVER["SCRIPT_FILENAME"] = str_replace("\\", '/', $_SERVER["SCRIPT_FILENAME"]);
|
$_SERVER["SCRIPT_FILENAME"] = str_replace("\\", '/', $_SERVER["SCRIPT_FILENAME"]);
|
||||||
if(PHP_SAPI == 'cli'){
|
if(PHP_SAPI == 'cli'){
|
||||||
|
chdir(pathinfo($_SERVER["PHP_SELF"], PATHINFO_DIRNAME));
|
||||||
$script_full_path = str_replace("\\", '/', getcwd() . '/' . $_SERVER["SCRIPT_FILENAME"]);
|
$script_full_path = str_replace("\\", '/', getcwd() . '/' . $_SERVER["SCRIPT_FILENAME"]);
|
||||||
$dirs = explode('/', pathinfo($script_full_path, PATHINFO_DIRNAME));
|
$dirs = explode('/', pathinfo($script_full_path, PATHINFO_DIRNAME));
|
||||||
if (file_exists('/.project.ROOT')) {
|
if (file_exists('/.project.ROOT')) {
|
||||||
|
|
|
||||||
|
|
@ -36,6 +36,7 @@
|
||||||
// make sure the document_root is set
|
// make sure the document_root is set
|
||||||
$_SERVER["SCRIPT_FILENAME"] = str_replace("\\", '/', $_SERVER["SCRIPT_FILENAME"]);
|
$_SERVER["SCRIPT_FILENAME"] = str_replace("\\", '/', $_SERVER["SCRIPT_FILENAME"]);
|
||||||
if(PHP_SAPI == 'cli'){
|
if(PHP_SAPI == 'cli'){
|
||||||
|
chdir(pathinfo($_SERVER["PHP_SELF"], PATHINFO_DIRNAME));
|
||||||
$script_full_path = str_replace("\\", '/', getcwd() . '/' . $_SERVER["SCRIPT_FILENAME"]);
|
$script_full_path = str_replace("\\", '/', getcwd() . '/' . $_SERVER["SCRIPT_FILENAME"]);
|
||||||
$dirs = explode('/', pathinfo($script_full_path, PATHINFO_DIRNAME));
|
$dirs = explode('/', pathinfo($script_full_path, PATHINFO_DIRNAME));
|
||||||
if (file_exists('/.project.ROOT')) {
|
if (file_exists('/.project.ROOT')) {
|
||||||
|
|
|
||||||
|
|
@ -36,6 +36,7 @@
|
||||||
// make sure the document_root is set
|
// make sure the document_root is set
|
||||||
$_SERVER["SCRIPT_FILENAME"] = str_replace("\\", '/', $_SERVER["SCRIPT_FILENAME"]);
|
$_SERVER["SCRIPT_FILENAME"] = str_replace("\\", '/', $_SERVER["SCRIPT_FILENAME"]);
|
||||||
if(PHP_SAPI == 'cli'){
|
if(PHP_SAPI == 'cli'){
|
||||||
|
chdir(pathinfo($_SERVER["PHP_SELF"], PATHINFO_DIRNAME));
|
||||||
$script_full_path = str_replace("\\", '/', getcwd() . '/' . $_SERVER["SCRIPT_FILENAME"]);
|
$script_full_path = str_replace("\\", '/', getcwd() . '/' . $_SERVER["SCRIPT_FILENAME"]);
|
||||||
$dirs = explode('/', pathinfo($script_full_path, PATHINFO_DIRNAME));
|
$dirs = explode('/', pathinfo($script_full_path, PATHINFO_DIRNAME));
|
||||||
if (file_exists('/.project.ROOT')) {
|
if (file_exists('/.project.ROOT')) {
|
||||||
|
|
|
||||||
|
|
@ -36,6 +36,7 @@
|
||||||
// make sure the document_root is set
|
// make sure the document_root is set
|
||||||
$_SERVER["SCRIPT_FILENAME"] = str_replace("\\", '/', $_SERVER["SCRIPT_FILENAME"]);
|
$_SERVER["SCRIPT_FILENAME"] = str_replace("\\", '/', $_SERVER["SCRIPT_FILENAME"]);
|
||||||
if(PHP_SAPI == 'cli'){
|
if(PHP_SAPI == 'cli'){
|
||||||
|
chdir(pathinfo($_SERVER["PHP_SELF"], PATHINFO_DIRNAME));
|
||||||
$script_full_path = str_replace("\\", '/', getcwd() . '/' . $_SERVER["SCRIPT_FILENAME"]);
|
$script_full_path = str_replace("\\", '/', getcwd() . '/' . $_SERVER["SCRIPT_FILENAME"]);
|
||||||
$dirs = explode('/', pathinfo($script_full_path, PATHINFO_DIRNAME));
|
$dirs = explode('/', pathinfo($script_full_path, PATHINFO_DIRNAME));
|
||||||
if (file_exists('/.project.ROOT')) {
|
if (file_exists('/.project.ROOT')) {
|
||||||
|
|
|
||||||
|
|
@ -36,6 +36,7 @@
|
||||||
// make sure the document_root is set
|
// make sure the document_root is set
|
||||||
$_SERVER["SCRIPT_FILENAME"] = str_replace("\\", '/', $_SERVER["SCRIPT_FILENAME"]);
|
$_SERVER["SCRIPT_FILENAME"] = str_replace("\\", '/', $_SERVER["SCRIPT_FILENAME"]);
|
||||||
if(PHP_SAPI == 'cli'){
|
if(PHP_SAPI == 'cli'){
|
||||||
|
chdir(pathinfo($_SERVER["PHP_SELF"], PATHINFO_DIRNAME));
|
||||||
$script_full_path = str_replace("\\", '/', getcwd() . '/' . $_SERVER["SCRIPT_FILENAME"]);
|
$script_full_path = str_replace("\\", '/', getcwd() . '/' . $_SERVER["SCRIPT_FILENAME"]);
|
||||||
$dirs = explode('/', pathinfo($script_full_path, PATHINFO_DIRNAME));
|
$dirs = explode('/', pathinfo($script_full_path, PATHINFO_DIRNAME));
|
||||||
if (file_exists('/.project.ROOT')) {
|
if (file_exists('/.project.ROOT')) {
|
||||||
|
|
|
||||||
1
root.php
1
root.php
|
|
@ -36,6 +36,7 @@
|
||||||
// make sure the document_root is set
|
// make sure the document_root is set
|
||||||
$_SERVER["SCRIPT_FILENAME"] = str_replace("\\", '/', $_SERVER["SCRIPT_FILENAME"]);
|
$_SERVER["SCRIPT_FILENAME"] = str_replace("\\", '/', $_SERVER["SCRIPT_FILENAME"]);
|
||||||
if(PHP_SAPI == 'cli'){
|
if(PHP_SAPI == 'cli'){
|
||||||
|
chdir(pathinfo($_SERVER["PHP_SELF"], PATHINFO_DIRNAME));
|
||||||
$script_full_path = str_replace("\\", '/', getcwd() . '/' . $_SERVER["SCRIPT_FILENAME"]);
|
$script_full_path = str_replace("\\", '/', getcwd() . '/' . $_SERVER["SCRIPT_FILENAME"]);
|
||||||
$dirs = explode('/', pathinfo($script_full_path, PATHINFO_DIRNAME));
|
$dirs = explode('/', pathinfo($script_full_path, PATHINFO_DIRNAME));
|
||||||
if (file_exists('/.project.ROOT')) {
|
if (file_exists('/.project.ROOT')) {
|
||||||
|
|
|
||||||
|
|
@ -36,6 +36,7 @@
|
||||||
// make sure the document_root is set
|
// make sure the document_root is set
|
||||||
$_SERVER["SCRIPT_FILENAME"] = str_replace("\\", '/', $_SERVER["SCRIPT_FILENAME"]);
|
$_SERVER["SCRIPT_FILENAME"] = str_replace("\\", '/', $_SERVER["SCRIPT_FILENAME"]);
|
||||||
if(PHP_SAPI == 'cli'){
|
if(PHP_SAPI == 'cli'){
|
||||||
|
chdir(pathinfo($_SERVER["PHP_SELF"], PATHINFO_DIRNAME));
|
||||||
$script_full_path = str_replace("\\", '/', getcwd() . '/' . $_SERVER["SCRIPT_FILENAME"]);
|
$script_full_path = str_replace("\\", '/', getcwd() . '/' . $_SERVER["SCRIPT_FILENAME"]);
|
||||||
$dirs = explode('/', pathinfo($script_full_path, PATHINFO_DIRNAME));
|
$dirs = explode('/', pathinfo($script_full_path, PATHINFO_DIRNAME));
|
||||||
if (file_exists('/.project.ROOT')) {
|
if (file_exists('/.project.ROOT')) {
|
||||||
|
|
|
||||||
|
|
@ -36,6 +36,7 @@
|
||||||
// make sure the document_root is set
|
// make sure the document_root is set
|
||||||
$_SERVER["SCRIPT_FILENAME"] = str_replace("\\", '/', $_SERVER["SCRIPT_FILENAME"]);
|
$_SERVER["SCRIPT_FILENAME"] = str_replace("\\", '/', $_SERVER["SCRIPT_FILENAME"]);
|
||||||
if(PHP_SAPI == 'cli'){
|
if(PHP_SAPI == 'cli'){
|
||||||
|
chdir(pathinfo($_SERVER["PHP_SELF"], PATHINFO_DIRNAME));
|
||||||
$script_full_path = str_replace("\\", '/', getcwd() . '/' . $_SERVER["SCRIPT_FILENAME"]);
|
$script_full_path = str_replace("\\", '/', getcwd() . '/' . $_SERVER["SCRIPT_FILENAME"]);
|
||||||
$dirs = explode('/', pathinfo($script_full_path, PATHINFO_DIRNAME));
|
$dirs = explode('/', pathinfo($script_full_path, PATHINFO_DIRNAME));
|
||||||
if (file_exists('/.project.ROOT')) {
|
if (file_exists('/.project.ROOT')) {
|
||||||
|
|
|
||||||
|
|
@ -36,6 +36,7 @@
|
||||||
// make sure the document_root is set
|
// make sure the document_root is set
|
||||||
$_SERVER["SCRIPT_FILENAME"] = str_replace("\\", '/', $_SERVER["SCRIPT_FILENAME"]);
|
$_SERVER["SCRIPT_FILENAME"] = str_replace("\\", '/', $_SERVER["SCRIPT_FILENAME"]);
|
||||||
if(PHP_SAPI == 'cli'){
|
if(PHP_SAPI == 'cli'){
|
||||||
|
chdir(pathinfo($_SERVER["PHP_SELF"], PATHINFO_DIRNAME));
|
||||||
$script_full_path = str_replace("\\", '/', getcwd() . '/' . $_SERVER["SCRIPT_FILENAME"]);
|
$script_full_path = str_replace("\\", '/', getcwd() . '/' . $_SERVER["SCRIPT_FILENAME"]);
|
||||||
$dirs = explode('/', pathinfo($script_full_path, PATHINFO_DIRNAME));
|
$dirs = explode('/', pathinfo($script_full_path, PATHINFO_DIRNAME));
|
||||||
if (file_exists('/.project.ROOT')) {
|
if (file_exists('/.project.ROOT')) {
|
||||||
|
|
|
||||||
|
|
@ -36,6 +36,7 @@
|
||||||
// make sure the document_root is set
|
// make sure the document_root is set
|
||||||
$_SERVER["SCRIPT_FILENAME"] = str_replace("\\", '/', $_SERVER["SCRIPT_FILENAME"]);
|
$_SERVER["SCRIPT_FILENAME"] = str_replace("\\", '/', $_SERVER["SCRIPT_FILENAME"]);
|
||||||
if(PHP_SAPI == 'cli'){
|
if(PHP_SAPI == 'cli'){
|
||||||
|
chdir(pathinfo($_SERVER["PHP_SELF"], PATHINFO_DIRNAME));
|
||||||
$script_full_path = str_replace("\\", '/', getcwd() . '/' . $_SERVER["SCRIPT_FILENAME"]);
|
$script_full_path = str_replace("\\", '/', getcwd() . '/' . $_SERVER["SCRIPT_FILENAME"]);
|
||||||
$dirs = explode('/', pathinfo($script_full_path, PATHINFO_DIRNAME));
|
$dirs = explode('/', pathinfo($script_full_path, PATHINFO_DIRNAME));
|
||||||
if (file_exists('/.project.ROOT')) {
|
if (file_exists('/.project.ROOT')) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue