Jump to content


Photo

ftp_connect problem


  • Please log in to reply
1 reply to this topic

#1 rody1

rody1
  • New Members
  • Pip
  • Newbie
  • 1 posts

Posted 13 October 2006 - 10:30 PM

Hi there,

Does anybody know why my script dies after calling the function:

ftp_connect($host)



I am building an FTP site, but got stuck here.  I have to comment out the rest of my code, because it just dies after calling that function:

Here is what I have:


$host = 'ftp.cs.rmit.edu.au';
            $conn = ftp_connect($host) or die("Couldn't connect to ftp server");



//connect to host


if(!$conn)
{
echo "Error: could not connect to ftp server<br>";

}


echo "Connected to {$host} <br>";


I commented out everything and just left the ftp_connect function.  I know it dies right there, because I tried to echo a simple statement, and it just doesn't get past the ftp_connect function


Please help me.

Thanks!


Alberto

#2 myron

myron
  • New Members
  • Pip
  • Newbie
  • 6 posts
  • LocationSalt Lake City, UT

Posted 28 December 2006 - 12:09 AM

Alberto,

I'm having the exact same problem.  Did you find a solution?

Myron
Myron, the PHP Neophyte

When was the last time you did something for the first time?
If you always do what you've always done you'll always get what you've always got.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users