I'm using PHPs FTP functions to transfer files etc to another server from an interactive environment. So I can put and get files, delete files, rename files etc. and after each action the PHP scripts displays the FTP UI.
Currently for each action I do the following steps:
- Open connection
- Login
- Do action (delete, rename, ...)
- Close connection
Is it possible to keep the connection open, doing step 1 and 2 only for the first action and skip them for all consecutive actions and step 4 only when I'm ready with all actions?
Thanks,
Arjan