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). Link to comment https://forums.phpfreaks.com/topic/18059-functionunlink-permission-denied-windows/ Share on other sites More sharing options...
tomfmason Posted August 19, 2006 Share Posted August 19, 2006 Can you manualy delete the file? Link to comment https://forums.phpfreaks.com/topic/18059-functionunlink-permission-denied-windows/#findComment-77383 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. Link to comment https://forums.phpfreaks.com/topic/18059-functionunlink-permission-denied-windows/#findComment-77384 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 Link to comment https://forums.phpfreaks.com/topic/18059-functionunlink-permission-denied-windows/#findComment-77385 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? Link to comment https://forums.phpfreaks.com/topic/18059-functionunlink-permission-denied-windows/#findComment-77388 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. Link to comment https://forums.phpfreaks.com/topic/18059-functionunlink-permission-denied-windows/#findComment-77391 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()? Link to comment https://forums.phpfreaks.com/topic/18059-functionunlink-permission-denied-windows/#findComment-77399 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. Link to comment https://forums.phpfreaks.com/topic/18059-functionunlink-permission-denied-windows/#findComment-77436 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.