Chmoddy-moddy

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
Gen-ik
DevNet Resident
Posts: 1059
Joined: Mon Aug 12, 2002 7:08 pm
Location: London. UK.

Chmoddy-moddy

Post by Gen-ik »

I'm taking a wild guess that this might be a CHMOD issue...

After a file gets uploaded from my website to the server via PHP it won't allow me to delete it.. either through my FTP program or via the server admin apps.

Whenever I try to delete a PHP-uploaded file I get a "permission denied" or "permission not granted" error.

Has anyone had a similar problem or know how I can sort this out?


Thanks.
User avatar
daven
Forum Contributor
Posts: 332
Joined: Tue Dec 17, 2002 1:29 pm
Location: Gaithersburg, MD
Contact:

Post by daven »

that is indeed a CHMOD problem. Check out the permissions on the files. If all else fails, do a CHMOD 777 (or 0777 if you are using php rather than shell).
Post Reply