Jason,
Thank you for the reply.
Have you enabled FULL error reporting? Are you getting any errors?
Here are the couple of lines of interest:
$connection = ftp_connect($server, $port); $loggedOn = ftp_login($connection, $user, $password); $systype = ftp_systype($connection);
The error that comes out is:
Warning: ftp_login() expects parameter 1 to be resource, boolean given in /directory/here/public_html/ftp/index.php on line 108
Warning: ftp_systype() expects parameter 1 to be resource, boolean given in /directory/here/public_html/ftp/index.php on line 109
Those correspond to the last two lines of the above code.
Is the server you're connecting to using a non-standard port? If not just leave out $port, or make pretty damn sure it's 21.
That is set to 21 anyway, but fair enough point.
Do you have shell access to the server? If so you can try using the command line 'ftp' to see whether you can connect to the ftpserver.
No, wish I did ;-(
Are you positive that the host allows FTP out of the webserver (the machine not the program) to a remote ftpserver? Make sure the host knows what you're trying to do and that they know what they're doing.
They have told me on two occasions when I asked them that it was allowed to ftp from the server to others. I am actually trying to ftp to the same server anyway.
Catch ya,
DBW Melbourne | http://ozreef.org/ Australia | [EMAIL PROTECTED] -------------------------------------------------------------------------- When the only tool you own is a hammer, every problem begins to resemble a nail.
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php