Having issues with the chmod on my files. They are defaulting to 666.
No errors uploading any files initially...

We are running PHP 5.0 on a Windows Server, and I cannot seem to modify them, nor can I update them as Windows does not recognize the chmod property.. from what I hear?

I did try running this script on the root of my site, but no dice.

<?php chmod("/products/name.jpg", 0755); ?>

Any help anyone can offer would be awesome :o

Thanks,
Mr. Phish 0812 - Spokane, WA

    Windows doesn't use the same file permission setup as *nix.
    Why do you need to chmod the files?

    Also the leading / will make php look in the incorrect location for the file.

      I am noticing that! doe!

      I don't need to chmod our files, I just want to be
      able to update an image. I am not sure how to do
      that with the current problem we're having. They are
      being uploaded at 666.

        Write a Reply...