开发者

PHP ftp_connect() fail

开发者 https://www.devze.com 2023-04-07 09:47 出处:网络
Very simple problem but one which I am unable to solve. Why would I get a ftp_conne开发者_如何学Cct() fail?

Very simple problem but one which I am unable to solve. Why would I get a ftp_conne开发者_如何学Cct() fail?

$conn = ftp_connect("www.server.com");

Have tried SSL connect. Intrestingly I had no problem with this ftp_connect() on this server until recently when I started getting error messages. Not too sure what triggered this perhaps an update as the code was not altered.

Thanks in advance

Edit: Found this in Plesk : Shell access to server with FTP user's credentials - Forbidden

Have no idea if its relevant


Ok, after lots of fiddling (asking someone else) this is the solution I found...

$conn = ftp_connect(localhost);

Well the simplest solution is the best. This works as the code is situated on the server to which it is trying to connect.

0

精彩评论

暂无评论...
验证码 换一张
取 消