Delete a folder, permission denied.

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
gloveny2
Forum Newbie
Posts: 9
Joined: Wed Mar 31, 2004 10:00 am

Delete a folder, permission denied.

Post 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
User avatar
twigletmac
Her Royal Site Adminness
Posts: 5371
Joined: Tue Apr 23, 2002 2:21 am
Location: Essex, UK

Post by twigletmac »

Moved to PHP - Code.

Mac
gloveny2
Forum Newbie
Posts: 9
Joined: Wed Mar 31, 2004 10:00 am

Post by gloveny2 »

Sorry twigletmac, what do you mean?
User avatar
twigletmac
Her Royal Site Adminness
Posts: 5371
Joined: Tue Apr 23, 2002 2:21 am
Location: Essex, UK

Post 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
Post Reply