using ftp_put

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
User avatar
kendall
Forum Regular
Posts: 852
Joined: Tue Jul 30, 2002 10:21 am
Location: Trinidad, West Indies
Contact:

using ftp_put

Post by kendall »

Hi,

I'm trying to develop a consistant function to upload files submitted via form input...I tried using the ever popular move_uploaded_file but i'm encountering alot of permission errors renders my apps useless if i need to edit/ remove that same file...

So i'm trying out the ftp_put...however

in trying to use the ftp_put I'm getting a
failed to open stream: No such file or directory in
error...the paths appear to be correct so I am confused...

does ftp_put need to have the file exist on the remote end in order to transfer from the local end?

What do you guys use for uploading file and dealing with the permissions issue? (chmod() doesnt work)
Post Reply