PHP implementation to connect to the FTP server, how to resolve
Source: Internet
Author: User
PHP implementation connects to FTP server
I am doing the connection to the FTP server operation, but always appear such a mistake, want to ask for a moment! I said on the internet, first Sun code:
$ftp _connect=ftp_connect ("acms.ny.net") or Die ("Connection Server failed");
$ftp _login=ftp_login ($ftp _connect, "root", "AAA");
if (! $ftp _connect| |! $ftp _login)
{
echo "Cannot connect";
Exit
}
And then my local localhost run under the result is "Cannot connect", it also does not show the connection server failed, say Warning:ftp_login () [Function.ftp-login]: Login incorrect. Ftp_login=ftp_login ($ftp _connect, "root", "AAA"); Is wrong! Please give an explanation to the hero! My QQ number is 908695719, want to know the master help, urgent beg!
------Solution--------------------
Password is wrong, or the user can not connect remotely, you try to connect with the FTP software
------Solution--------------------
Have a wooden port number?
------Solution--------------------
Try the client software first
------Solution--------------------
Explore
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.