FTP using php
Posted: Wed Oct 31, 2007 4:55 am
I am having a problem with uploading a file via ftp to google base.
I keep getting the error:
where $ftp_server = uploads.google.com
and username and password are correct as I can connect using my ftp program.
Please help
I keep getting the error:
code is as followsWarning: ftp_login() expects parameter 1 to be resource, boolean given in /home/l/a/laptopcentre/public_html/fulladmin/froogle.php on line 329
Warning: ftp_pasv() expects parameter 1 to be resource, boolean given in /home/l/a/laptopcentre/public_html/fulladmin/froogle.php on line 330
Code: Select all
// ...some code
$conn_id = ftp_connect($ftp_server);
ftp_pasv($conn_id, true);
// login with username and password
$login_result = ftp_login($conn_id, $ftp_user_name, $ftp_password);
// some more code ...and username and password are correct as I can connect using my ftp program.
Please help