我是在wamp下开发的。
echo realpath(APPPATH);C:\wamp\www\salsaritmo\system\application
echo realpath(APPPATH . '..');C:\wamp\www\salsaritmo\system
echo realpath(APPPATH . '../files'); //(which is the one i want)不返回任何内容
发布于 2010-04-03 05:16:01
realpath() returns FALSE on failure, e.g. if the file does not exist.
发布于 2010-04-03 09:57:20
您的APPPATH不是以目录分隔符结尾的,所以您最终会尝试realpath('C:\wamp\www\salsaritmo\system../files'),,这显然是无效的。尝试:
echo realpath(APPPATH . '/../files');https://stackoverflow.com/questions/2569214
复制相似问题