开发者

CHMOD files (Set Permission) after uploading on Local Server Windows XP

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜