$upload_dir = ?user_img;
move_uploaded_file($_files[logo_file1][tmp_name],$upload_dir./.$_files[logo_file1][name]);
这是上传图片的代码,这个代码,为什么总是出现警告?
这个代码的文件在根目录的,_test目录里面。
而且根目录里的user_img里面没有图片。
_test\user_img里面也没有图片 ,
我是想把图片上传到根目录里的user_img里面。
warning: move_uploaded_file(?user_img/r6s2g3.gif) [function.move-uploaded-file]: failed to open stream: no such file or directory in /home/hosting_users/kr_mall24/www/_test/post_ok.php on line 53
warning: move_uploaded_file() [function.move-uploaded-file]: unable to move '/tmp/phpxjhvyd' to '?user_img/r6s2g3.gif' in /home/hosting_users/kr_mall24/www/_test/post_ok.php on line 53
------解决方案--------------------
没有这个文件 看看是不是路径错了
------解决方案--------------------
$upload_dir = /www?user_img;
