Two linux servers are configured with ftp for image uploading. ftp linux image uploading
Now I have two servers. one is the php website server for uploading images, and the other is a server similar to the image server. the vsftp server can be connected to obtain the directory by using ftp software, both are configured. only the built-in functions $ this-> conn_id = ftp_connect ($ FTP_HOST, $ FTP_PORT) or die ("FTP server connection failed") in php are used ");
Ftp_login ($ this-> conn_id, $ FTP_USER, $ FTP_PASS) or die ("FTP server login failed ");
Ftp_pasv ($ this-> conn_id, 1); // enable passive simulation
But the aisle ftp_connect (); stops. if you don't leave the aisle, no error will be reported and the server cannot be connected. Can the Master help solve the problem? urgently !!!!!
I don't know why Port 21 is enabled.
Reply to discussion (solution)
In non-windows environments, ftp support is not loaded by default in php.
You need to add the ftp option when compiling php.
Make sure ftp extension is loaded
There are loads. There are loads of apche. are you talking about php or apche. How can php be loaded in advance?
Why is the size 0 when the uploaded image is connected?
I guess it's a passive and active problem... I shut down various firewalls first.
Are both turned off? do both servers need to be turned off? firewall
Both are disabled, but the size of the uploaded files is still 0.