Reputation: 2989
Should be an easy question but I don't really have an understanding of how servers work. I am using MAMP/Apache and I'm trying to use this command on PHP:
$conn_id=ftp_connect($ftp_server);
then,
$login_result = ftp_login($conn_id, $ftp_user_name, $ftp_user_pass);
It works to type in my URL, username and password to connect to the remote server hosted on dreamhost, but how do I connect to the local host for testing purposes? What exactly is my server called? And what do I put for username and password?
Thanks!
Upvotes: 1
Views: 2282
Reputation: 23580
MAMP doesn't come with a built-in FTP server. If you want to simulate a FTP connection locally, you can use the FTP server that comes with OS X. MAMP does offer a step by step tutorial how to use it:
Upvotes: 1