Home > Backend Development > PHP Tutorial > 两台linux服务器下配置的ftp关于图片上传的有关问题

两台linux服务器下配置的ftp关于图片上传的有关问题

WBOY
Release: 2016-06-13 12:32:54
Original
954 people have browsed it

两台linux服务器下配置的ftp关于图片上传的问题
    现在我有两台服务器,一台是php上传图片的 网站服务器,另外一台是类似于图片服务器的服务器配置了vsftp服务器本地用ftp软件是可以连接上获取目录的,两台都配置好了,只有用php中自带的函数$this->conn_id = ftp_connect($FTP_HOST,$FTP_PORT) or die("FTP服务器连接失败");
ftp_login($this->conn_id,$FTP_USER,$FTP_PASS) or die("FTP服务器登陆失败");
ftp_pasv($this->conn_id,1); // 打开被动模拟
可是 走道 ftp_connect();就停到了 ,一直不走了也不报错,连接不到服务器,那位高手能不能帮忙解决一下,急用!!!!!
  端口21 开启了 不知道什么原因了,各位大虾 江湖救急啊

ftp?linux?图片上传
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template