Page 1 of 1

ftp_put() problem help me please

Posted: Sun Mar 06, 2011 5:19 am
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

Re: ftp_put() problem help me please

Posted: Sun Mar 06, 2011 6:01 pm
by greyhoundcode
If your users are uploading via an HTML form, what is the enctype attribute set to? Should be multipart/form-data.