I have a local we开发者_运维百科bserver on Windows XP
using this code:
if (move_uploaded_file($temp, $dstPath)){
@chmod($dstPath, 0755);
echo "Upload Complete!";
and nothing happens to the uploaded file!
I have an upload script made by someone and when I upload an image CHMOD function work!
Why then with my 'simple script' it doesn't ?
It's not a problem with the script but where you use it. Sadly, it's not written on the documentation but chmod
is intended to be use on *nix server/computers.
The file permissions model on Windows is different and mainly based on ACL.
精彩评论