Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Connect to FTP via PHP script issue

Discussion in 'General Discussion' started by kumo92, Jan 3, 2017.

  1. kumo92

    kumo92 Registered

    Joined:
    Jul 21, 2016
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Malaysia
    cPanel Access Level:
    Website Owner
    There is no problem with the connection, but trying to download file from server 2 to my server through php, but it return me There was a problem.

    PHP Warning: ftp_nlist(): php_connect_nonb() failed: Operation now in progress (115)
    PHP Warning: ftp_get(): Timeout.
    ftp_get(): Entering Passive Mode

    if(ftp_get($conn_id, $local_file, $server_file, FTP_BINARY))
    {
    echo "Successfully written to $local_file   ";
    }
    else
    {
    echo "There was a problem\n";
    }
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    38,658
    Likes Received:
    1,419
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
Loading...

Share This Page