ftp_put() problem help me please

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
teitoklein01
Forum Newbie
Posts: 1
Joined: Sun Feb 27, 2011 12:04 am

ftp_put() problem help me please

Post by teitoklein01 »

Hmm, The thing is I don't have any problem uploading my files(images, php, sprites, css, etc) on the web host we've chosen. The problem we were encountering is when the user upload on user-side. because we had a module in the website wherein user can upload his/her own file. and other user can download that..

If i can't get the relative path where my files are located I can't succeed ftp_put and ftp_get.

enable-ftp is "on" on the free web host we've chosen.
ftp_put(),get(),connect() etc is enabled also.

The real problem is the path we're the "registered user" can upload his/her files. T_T
User avatar
greyhoundcode
Forum Regular
Posts: 613
Joined: Mon Feb 11, 2008 4:22 am

Re: ftp_put() problem help me please

Post by greyhoundcode »

If your users are uploading via an HTML form, what is the enctype attribute set to? Should be multipart/form-data.
Post Reply