How do FTP files using PHP?

Terence

New member
I need a working php ftp script as I cant use upload for my coy server.

I am curious about this piece of code:

ftp_put($conn, "sn.txt", "sn.txt", FTP_ASCII);

How do php knows where "sn.txt" is located? I am using a form where user can browse file and submit to ftp to server. However it doesnt work at all...it seems like that piece of code above doesnt indicate the full path to locate the local file?

PHP connection to server works though.
 
Back
Top