windows OS define('SYSDIR', trim(strrchr(trim(BASEPATH, '/'), '/'), '/')); var_dump(SYSDIR); string(0) "" Fix: define('SYSDIR', trim(strrchr(trim(str_replace('\', '/', BASEPATH), '/'), '/'), '/'));
windows OS
define('SYSDIR', trim(strrchr(trim(BASEPATH, '/'), '/'), '/'));
var_dump(SYSDIR);
string(0) ""
Fix:
define('SYSDIR', trim(strrchr(trim(str_replace('', '/', BASEPATH), '/'), '/'), '/'));