Hi, I'm using Phalcon 2.0 in our internal web page. We have this problem: While Phalcon is loading a large piece of code, for example this one:
    set_include_path(APP_PATH . "/app/vendor/phpseclib");
    include_once APP_PATH . "/app/vendor/phpseclib/Net/SFTP.php";
    if (!defined('NET_SFTP_LOGGING')) define('NET_SFTP_LOGGING', NET_SFTP_LOG_COMPLEX);
    $sftp = new Net_SFTP($server);
    if (!$sftp->login($username, $password)) {
        echo 'Login Failed.';
        echo $sftp->getSFTPLog();
    } else {
        echo 'Connected by SFTP.<br>';
        if (!empty($files)) {
            if ($sftp->put($remote_directory . $name, $local_directory . $files, NET_SFTP_LOCAL_FILE)) {
                echo "Upload completed<br>";
            } else {
                echo "Fail uploading<br>";
            }
        }
    }It uploads multiple and large files, and while is uploading it, no one page is responding until it finish. How can I avoid it generally? The above code is only an example.
Thanks