php $ ftp_server = "localhost"; $ conn_id = ftp_connect ($ ftp_server) or Die ("COULDN'T to $ FTP_SERVER);?> I use the above code, I haven't waited for an error. I didn't have FTP installed. Service. Change to the following code, 10 seconds after 10 seconds: couldn't connect to localhost $ ftp_server = "localhost"; $ conn_id = @ftp_connect ($ ftp_server, 21, 10) or Die ("COULDN't Connect to $ FTP_SERVER / N / "); ECHO (" Connect to $ FTP_SERVER SUCCEED / N
");
I tested and connect the remote FTP.