inqztve Posted August 19, 2006 Share Posted August 19, 2006 How do I solve this issue? [b][function.unlink]: Permission denied[/b]I get this message while using unlink() to delete a file. All permission is enabled for IUSER on the directory I am trying to delete the file from.Using:Windows 2003IIS 6.0And PHP 5.1.4 (I think). Quote Link to comment Share on other sites More sharing options...
tomfmason Posted August 19, 2006 Share Posted August 19, 2006 Can you manualy delete the file? Quote Link to comment Share on other sites More sharing options...
inqztve Posted August 19, 2006 Author Share Posted August 19, 2006 Yes I can go to the folder and delete the file. I checked that. Quote Link to comment Share on other sites More sharing options...
tomfmason Posted August 19, 2006 Share Posted August 19, 2006 I am not familiar with IIS but you may have to allow the user (Apache) to interact with the desk top Quote Link to comment Share on other sites More sharing options...
Yesideez Posted August 19, 2006 Share Posted August 19, 2006 I know nothing about IIS and how it all works as all my web design is done live on a server but that seems like a chmod problem - does that exist on IIS?Was the folder created using a script? Quote Link to comment Share on other sites More sharing options...
inqztve Posted August 19, 2006 Author Share Posted August 19, 2006 No, the folder was not created with a script. It's actually the folder that keeps sessions data. I want to remove some of those files later. I think chmod is applicable only for unix/linux not windows. Quote Link to comment Share on other sites More sharing options...
Yesideez Posted August 19, 2006 Share Posted August 19, 2006 I don't understand why you'd want to control them using a script - if you want to delete a session why not use session_destroy()? Quote Link to comment Share on other sites More sharing options...
inqztve Posted August 20, 2006 Author Share Posted August 20, 2006 Because of the same reason that we were talking before. I want to destroy some other session ---[b]not the current one.[/b] Session destroy can not do that. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.