在PHP编程中,目的想上传本地文件到服务器端,在调用$_FILES变量时,无法活得值,有什么解决办法么?
1 form表单中 enctype属性已给
2php.ini.配置文件中 file_uploads已开
3临时根目录已开,默认 upload_tmp_dir = "d:/wamp/tmp"
4最大上传限制没有突破
if ($action == upload)
{
if(!empty($_FILES[upfile][name]))
{echo $_FILES['upfile']['name']; }
else{ exit;}
1 form表单中 enctype属性已给
2php.ini.配置文件中 file_uploads已开
3临时根目录已开,默认 upload_tmp_dir = "d:/wamp/tmp"
4最大上传限制没有突破
if ($action == upload)
{
if(!empty($_FILES[upfile][name]))
{echo $_FILES['upfile']['name']; }
else{ exit;}
}
http://bbs.csdn.net/topics/370258074