Page 1 of 1

Delete a folder, permission denied.

Posted: Thu Apr 01, 2004 5:26 am
by gloveny2
HI I have a script on client side wich asks the user with a javascript command promt wether or not they want to delete this file. If they say ok then it posts the name of the file to the PHP file for deletion, but I get this...
Warning: unlink(../users/folderName): Permission denied
Can anyone tell me how to stop this from happening. The folder contains files. If its an issue of chmod, can you tell me how to do this dynamically at the time of deletion.
Thanks for all your help
Graham

Posted: Thu Apr 01, 2004 5:33 am
by twigletmac
Moved to PHP - Code.

Mac

Posted: Thu Apr 01, 2004 6:45 am
by gloveny2
Sorry twigletmac, what do you mean?

Posted: Thu Apr 01, 2004 7:04 am
by twigletmac
gloveny2 wrote:Sorry twigletmac, what do you mean?
I moved the thread - it was originally posted in the General Discussion forum and I thought it would be better here :).

Mac