在上传文件时,我用了file_exists()函数,代码如下:
if(file_exists($_FILES['upfile']['tmp_name'])){
echo "AAAAAAAAAAAAAAAAAAa";
}
使用了这个函数后,居然报了个错:
Warning: file_exists() [function.file-exists]: open_basedir restriction in effect. File(F:\wamp\tmp\php17A.tmp) is not within the allowed path(s): (F:\wamp\www\demo;c:\windows\temp) in F:\wamp\www\demo\index.php on line 56排除错误,$_FILES['upfile']['tmp_name']是有值的;
看了网上很多资料,都说是open_basedir权限设置问题,但我搜了好多资料,也学着改了,可是还是报这个错误,改前与改后没什么反应;
我用的是集成环境——WAMP5,应该怎么改啊?要详细的哟
if(file_exists($_FILES['upfile']['tmp_name'])){
echo "AAAAAAAAAAAAAAAAAAa";
}
使用了这个函数后,居然报了个错:
Warning: file_exists() [function.file-exists]: open_basedir restriction in effect. File(F:\wamp\tmp\php17A.tmp) is not within the allowed path(s): (F:\wamp\www\demo;c:\windows\temp) in F:\wamp\www\demo\index.php on line 56排除错误,$_FILES['upfile']['tmp_name']是有值的;
看了网上很多资料,都说是open_basedir权限设置问题,但我搜了好多资料,也学着改了,可是还是报这个错误,改前与改后没什么反应;
我用的是集成环境——WAMP5,应该怎么改啊?要详细的哟
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货