PHP ftp_connect
Posted
by
Dude Lebowski
on Server Fault
See other posts from Server Fault
or by Dude Lebowski
Published on 2012-09-05T08:39:09Z
Indexed on
2012/09/05
9:39 UTC
Read the original article
Hit count: 225
I try to use the php ftp_connect fucntion on my dedicated server and I'm unable to establish a connection:
$conn_id = ftp_connect($ftp_server, 21) or die("Unable to connect to $ftp_server") ;
I'm sure the function is available as I test with :
function_exists('ftp_connect')
and it returns true
When I ftp the server through the shell I can reach it so I guess it's not a firewall issue. Am I missing something else ?
Thanks for your precious advices
© Server Fault or respective owner