简体   繁体   中英

problems after upgrading xampp to 1.7.7

i have upgraded my XAMPP server to 1.7.7, after that the file uploaded using the php move_uploaded_file function is not accessible from the network. It works OK in the server. But from a remote machine it shows there is not enough permission.I can see the files in the uploads folder but I can't copy,move, rename or preview it.

$isMove = move_uploaded_file ($_FILES['image']['tmp_name'],'uploads/'.$_FILES['image']['name']);

if I uses the copy function instead of the move_uploaded_file it works perfect. But i have used move_uploaded_files in many projects. Is there any fix for this problem.

Also a project using the zend optimizer is also not working after the upgrade.

我认为您需要设置目录的权限,以便PHP脚本可以使用具有写权限的用户的uid来运行,否则,如果权限不是这样,如果它们向用户www-data授予写权限,则它们可能会出错。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM