Jump to content

Warning ftp_put()


FGB

Recommended Posts

I have a script that uploads files via FTP and its returning the following warning, out of the blue, since yesterday:

[color=red]Warning: ftp_put() [function.ftp-put]: Accepted data connection in public_html/sys/laudos_xupload.php on line 90[/color]

The function:

[code]function enviar($file, $sufix, $ref, $path){
        // Upload function . . .
        include('ftpsets.php');
        // set up basic connection
        if(!isset($conn_id)){
            $conn_id = ftp_connect($ftp_server);
            // login with username and password
            $login_result = ftp_login($conn_id, $ftp_user_name, $ftp_user_pass);
            // turn passive mode on
            ftp_pasv($conn_id, true);
        }
        $remote_name = $ref.'.'.$sufix;
        $remote_file = $remote_name;
        set_time_limit(120);
        // upload a file
        if (!ftp_put($conn_id, $remote_file, $file['tmp_name'],FTP_BINARY))
die("<HR>Ocorreu um Erro: O arquivo não foi enviado!");
    }//EOF[/code]

Any help at all its appreciate, since ive read all documentations and forums around and havnet got a clue....
Link to comment
Share on other sites

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.