Permission Denied
Posted by: Jompis (---.70-2001-74657210.cust.bredbandsbolaget.se)
Date: May 19, 2008 11:19AM

I have the latest WampServer installed and just ran in to a problem!
I can't remove folders with rmdir()! I have the last 12 hours scanned Google for information and tried every possible thing I can think of! Please help me!
Just to make it all even more strange:
I can remove files.
I can remove folders if a remove them just after they are created.
This works
mkdir($dir, 0777);
rmdir($dir, 0777);

This however does not work:
mkdir($dir, 0777);
*Load page complete and click on random url to try remove a specific folder*
rmdir($dir, 0777);

I have tried to give every possible user full permission, without luck. I can remove folder with rmdir in cmd but not with the server!
Please help me before I go nuts! I can't let the system beat me! Just can't let it go! =\
Let me know if you want more info!



Edited 2 time(s). Last edit at 05/19/2008 11:20AM by Jompis.

Options: ReplyQuote
Re: Permission Denied
Posted by: stevenmartin99 (---.b-ras1.blp.dublin.eircom.net)
Date: May 19, 2008 03:27PM

this is windows not linux

Steven Martin
stevenmartin99@gmail.com
stevenmartin99@hotmail.com
PampServer.com - [pampserver.com]

Options: ReplyQuote
Re: Permission Denied
Posted by: msteudel (---.nyc.res.rr.com)
Date: May 19, 2008 05:22PM

Also make sure the directory is already empty before you try rmdir()

Options: ReplyQuote
Re: Permission Denied
Posted by: Jompis (---.70-2001-74657210.cust.bredbandsbolaget.se)
Date: May 19, 2008 06:51PM

Problem solved! Kind of embarrassing! I didn't use closedir() and therefor the folders was locked and couldn't be deleted. Wasted 8 hours of my life on the stupid thing! =P

Options: ReplyQuote


Sorry, only registered users may post in this forum.