Subject: ftp_connect() does nothing
Posted By: colinhumber Post Date: 1/5/2006 10:49:12 PM
I'm trying to use the ftp_connect() command to hook up to the FTP server for my site. The FTP functionality is enabled in PHP so that's not the issue.

Here's the code:
$conn_id = ftp_connect($hostname);   //where hostname is the proper ftp server

When I try to connect on my local version of application I can connect just fine. However, when I try to connect to the same FTP server on the hosted version of the app (same code), nothing happens. The ftp_connect() doesn't return an error, true/false, and no code past that line gets run. If I specify an invalid port then an error occurs, but connecting to the right host/port never works.

Any thoughts?


Go to topic 32015

Return to index page 402
Return to index page 401
Return to index page 400
Return to index page 399
Return to index page 398
Return to index page 397
Return to index page 396
Return to index page 395
Return to index page 394
Return to index page 393