unlink permission problems

Posted on 2005-05-09
Last Modified: 2012-06-27
Hi I'm runing php 5 on iis , my aplication works fine with my hosting company (unix server), when i run it on my testing server i get a permision denied error.
I read some of the previous answers and set my iis to alow scripts to read write and browse, still not working.
Question by:nysurf1
    LVL 11

    Expert Comment

    What OS are you using?
    Right-click on the directory you want to give write permissions and add the internet guest account (IUSR_YOURCOMPUTERNAME) and give it write permissions.
    LVL 4

    Author Comment

    I'm using windows xp pro and the iis is 5.1 , I get the errors on unlink() functions and createimage() functions (the extension was installeled properly).
    Warning: unlink(../Photos/bembe/2003_1225Image0092.jpg) [function.unlink]: Permission denied in c:\Inetpub\wwwroot\flashxml\Gallery\edit_photos.php on line 47

    I tryed your solution (matt) I dont know what you mean, I right click on the folder (would be nice to set it to the whole wwwroot  folder) and the options i have are: sharing; web sharing none of them have the option of adding an account
    Thanks !!
    LVL 11

    Accepted Solution

    >> I'm using windows xp pro
    OK good. You need to disable simple file sharing, which will make a security tab appear; and there you will be able to apply the more advanced permission. In Windows Explorer click on Tools->Folder Options->View and go all the way down to the bottom and uncheck "Enable Simple file sharing"
    Then right click on the folder of choice and hit security and add the internet guest account permissions.
    LVL 4

    Author Comment

    Well , you sent me to the right place but i dont think we see the same things on the folder options. I played with it and i found the solution , there is sharing and security>> check : share this folder on the network & allow network users to change my files.
    For me at the moment its important that it works but im guessing its a security problem to do such a thing (i only use this so i can work offline on stuff)
    Thanks for the help!

    Featured Post

    Maximize Your Threat Intelligence Reporting

    Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

    Join & Write a Comment

    This article will explain how to display the first page of your Microsoft Word documents (e.g. .doc, .docx, etc...) as images in a web page programatically. I have scoured the web on a way to do this unsuccessfully. The goal is to produce something …
    Password hashing is better than message digests or encryption, and you should be using it instead of message digests or encryption.  Find out why and how in this article, which supplements the original article on PHP Client Registration, Login, Logo…
    Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
    The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

    729 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    19 Experts available now in Live!

    Get 1:1 Help Now