LearningJunkie
New member
I am learning PHP and would like to use the following PHP code to connect to an FTP server:
$connect = ftp_connect("ftp.ispname.com");
$result = ftp_login($connect, "username", "password");
I am running a Mac and using MAMP, so given the absence of web hosting, I would like to connect to my own computer using FTP with the code above.
Do I need to set up my Mac as an FTP server first? If so, how can I do that? If not, where can I find the information on my computer to replace "ftp.ispname.com" that will work?
I could not find the answers for this on the internet, granted, I'm pretty ignorant on the topic.
Thank you!
$connect = ftp_connect("ftp.ispname.com");
$result = ftp_login($connect, "username", "password");
I am running a Mac and using MAMP, so given the absence of web hosting, I would like to connect to my own computer using FTP with the code above.
Do I need to set up my Mac as an FTP server first? If so, how can I do that? If not, where can I find the information on my computer to replace "ftp.ispname.com" that will work?
I could not find the answers for this on the internet, granted, I'm pretty ignorant on the topic.
Thank you!