Hey guys, when using the unlink feature in php i get an error which states I do not have enough permission do to this, I was wondering how to I get enough permission in windows? Thanks.

    If you are getting permission errors in Windows - ensure you are using the correct syntax for the directory. Check by echoing getcwd() and making sure your path is correct first off.

    You should be able to see any issues this way, as this is not normally an actual "security / permissions" error. If it is - allow the IUSER_machinename to have full control if using IIS...

      The Chancer wrote:

      If it is - allow the IUSER_machinename to have full control if using IIS...

      And if you're not using IIS, the same concept applies for Apache - make sure the account that the Apache service runs under has permissions on the file.

        I am using apache, I have given full permission of the folder and files to all users, I then checked the dir was correct in this case "../file/test.txt" but for some reason I am still getting the permission error.

        Anymore suggestions? and thanks for the replies.

          Write a Reply...