richo1 Posted January 2, 2008 Share Posted January 2, 2008 Hi. I am having an absolute nightmare using the unlink function to delete a file. I get a "Permission denied" warning message and it does not delete the file. Locally, i was using ISS and was able to kind of bodge / fix it by setting the folder's Sharing properties to: "share this folder on the network" "Allow network users to change my files" However. When I started working the live web space which is a windows based server, I got the same permissions problems all over again! As it's on the host, I can't use the bodge I used locally to resolve the problem. Has anyone got any ideas as I am completely stuck!? Quote Link to comment https://forums.phpfreaks.com/topic/84099-unlink-permissions-problem-on-windows-server/ Share on other sites More sharing options...
rajivgonsalves Posted January 2, 2008 Share Posted January 2, 2008 how did you create the folder.. was it through ftp.. if so loggin to ftp and set the mode to 777 but since its a windows server I am not too sure it would work.. but its worth a try... Quote Link to comment https://forums.phpfreaks.com/topic/84099-unlink-permissions-problem-on-windows-server/#findComment-428072 Share on other sites More sharing options...
richo1 Posted January 2, 2008 Author Share Posted January 2, 2008 Yes, through FTP. I tried setting the folder permissions to 777 but they keep reverting back to 666 when i click "ok". So i can't really tell if this solution works or not. I still get the same errors. Quote Link to comment https://forums.phpfreaks.com/topic/84099-unlink-permissions-problem-on-windows-server/#findComment-428075 Share on other sites More sharing options...
rajivgonsalves Posted January 2, 2008 Share Posted January 2, 2008 since its a windows machine your host must be having remote access... RDS... you can login through that and check... also if you have cpanel installed you can do it through that... that would get the permission right.. Quote Link to comment https://forums.phpfreaks.com/topic/84099-unlink-permissions-problem-on-windows-server/#findComment-428077 Share on other sites More sharing options...
richo1 Posted January 2, 2008 Author Share Posted January 2, 2008 Unfortunately i don't know how to use RDS and cpanel isn't installed. Quote Link to comment https://forums.phpfreaks.com/topic/84099-unlink-permissions-problem-on-windows-server/#findComment-428084 Share on other sites More sharing options...
rajivgonsalves Posted January 2, 2008 Share Posted January 2, 2008 Well then I only way out is to contact your server administrator and let him know which folder you want the permission to be set.. mostly all hosting provider provide online support so it should be easy... Quote Link to comment https://forums.phpfreaks.com/topic/84099-unlink-permissions-problem-on-windows-server/#findComment-428089 Share on other sites More sharing options...
richo1 Posted January 2, 2008 Author Share Posted January 2, 2008 Thanks. I will try that and let you know if it works. Quote Link to comment https://forums.phpfreaks.com/topic/84099-unlink-permissions-problem-on-windows-server/#findComment-428091 Share on other sites More sharing options...
richo1 Posted January 2, 2008 Author Share Posted January 2, 2008 Thanks for your help! I explained the problem to the hosting support and they added 'delete permissions' to the folder. It now works. Quote Link to comment https://forums.phpfreaks.com/topic/84099-unlink-permissions-problem-on-windows-server/#findComment-428175 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.