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!

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:
    44,301
    Likes Received:
    1,847
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice