Question about ftp functions

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
psxmetal
Forum Newbie
Posts: 6
Joined: Sun May 31, 2009 11:25 pm

Question about ftp functions

Post by psxmetal »

Hey everyone first time post. Been following the site for some time and ran into a problem!

I am creating a user gallery. User can login and upload pictures.
I need to upload through an ftp. So im using the ftp functions.

I setup on the main directory
chown groupName uploads

now in uploads i basically have username. Within there the name of album(folder) and images inside.
I have no problem on the upload part.

But now I want to allow the user to delete. But I am having issues with everything that deals with chmod or ftp_delete.

I get: Warning: ftp_delete() [function.ftp-delete]: Access not allowed.

I setup the user on ftp( has access to delete)... i login as the same user when uploading and when deleting. How can i go by fixing this?

thank you.
Post Reply