Let's say I'm connecting to an FTP by sending an ajax request to PHP:
$connection = ftp_connect($server);
$login = ftp_login($connection, $ftp_user_name, $ftp_user_pass);
After this request I want to upload a file:
$upload = ftp_put($connection, $dest, $source, $mode);
Is there a way to keep an FTP connection to the server on the client side and keep sending ajax requests to it without reestablishing the FTP connection on the server side?
Thank you!