21,887
社区成员
发帖
与我相关
我的任务
分享
$http_path = substr($_SERVER['PHP_SELF'], 0, -1 * (strlen($_SERVER['PHP_SELF']) - strrpos($_SERVER['PHP_SELF'], '/')));
$_SERVER['SCRIPT_FILENAME'] = str_replace('\\', '\\\\', $_SERVER['SCRIPT_FILENAME']);
$path = substr($_SERVER['SCRIPT_FILENAME'], 0, -1 * (strlen($_SERVER['SCRIPT_FILENAME']) - strrpos($_SERVER['SCRIPT_FILENAME'], '\\')));
$Config['UserFilesPath'] = $http_path.'/userfiles/' ;
$Config['UserFilesAbsolutePath'] = ((strpos($_SERVER["SERVER_SOFTWARE"], 'apache') === false) ?$path.'\\userfiles\\' : '') ;