I have a server set up with Apache2 on linux and I'm trying to upload a file to that server.
I am using:
$conn = ftp_connect("localhost") or die("Server connection failed.");
to achieve this, though it is not working.
I have tried a "wget" command to the same server though that failed also with this response:
Resolving localhost (localhost)... 127.0.0.1
Connecting to localhost (localhost)|127.0.0.1|:21... failed: Connection refused.
Does anybody know how to allow my server to be used in the ftp_connect php command?
Thank you very much guys.