I am trying to connect to my server via ftp but I can't seem to get the connection to work. I connect through other applications via ftp and they work just fine but through my php code it never connects.
I have tried connecting using the ip and the name (using www. and ftp. in front)
if(ftp_connect('www.mysite.com',21,30))
echo 'connected';
else
echo 'nope';
I always get "nope"... Is it possible from my host to block ftp connection from php but allow ftp connections from any other program? I just don't get why it won't connect? Any ideas? Thanks.