Very simple problem but one which I am unable to solve. Why would I get a ftp_connect() 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…
Well the simplest solution is the best. This works as the code is situated on the server to which it is trying to connect.