Jump to content

ftp_connect problem


rody1

Recommended Posts

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
Link to comment
Share on other sites

  • 2 months later...
This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.