I am unable to successfully ftp_connect to Apache server on my local machine using localhost (I also tried 127.0.0.1). The code works when I place it on my ISP's production server and replace localhost with my the production address. Please help me with this localhost problem.
$host="localhost";
$conn = ftp_connect("$host");
if (!$conn)
{
echo "Error: Could not connect to ftp server<br>";
exit;
}
echo "Connected to $host.<br>";