慕粉3684285
2017-03-09 08:13
启用超全局变量报错了,为什么$path=$_REQUEST['path']?$_REQUEST['path']:$path; $act=$_REQUEST['act']; $filename=$_REQUEST['filename']; $dirname=$_REQUEST['dirname']; 是版本不一样,不支持了,还是怎么样,有这经验的同学说一下么
if (isset($_POST['act'])) { $act = $_POST['act']; }else{ $act = null; }
if (isset($_POST['filename'])) { $filename = $_POST['filename']; }else{ $filename = null; }
上面的家isset()不行,这样会判断错误。还是这样吧$path="file";
$path=@$_REQUEST['path']?$_REQUEST['path']:$path;
$act=@$_REQUEST['act'];
$filename=@$_REQUEST['filename'];
$dirname=@$_REQUEST['dirname'];
$info=readDirectory($path);
$path = "file";
$info = readDirectory($path);
//var_dump ($_REQUEST);
$act = isset($_REQUEST['act']);
$filename = isset($_REQUEST['filename']);
if($act=="createFile"){
echo $path,"--";
echo "$filename";
}
WEB在线文件管理器
36223 学习 · 332 问题
相似问题