0

it looks php closes FTP connection at the end of the executed script, just like with database connection, how to create persistent connection?

user893856
  • 1,039
  • 3
  • 15
  • 21
  • I want to do a little client, and not to connect/disconnect everytime. To get speed and dont overload the server. Got it? :) – user893856 Oct 26 '11 at 18:34
  • 2
    php is a poor choice of language to use to create an ftp client. –  Oct 26 '11 at 18:35
  • related: http://stackoverflow.com/questions/4474577/persist-an-ftp-connection-php-resource-across-ajax-calls and http://sourceforge.net/projects/ftphp/ – Phill Pafford Oct 26 '11 at 18:45

2 Answers2

1

It isn't possible now. There is already request ticket opened though, look here

genesis
  • 50,477
  • 20
  • 96
  • 125
0

Have you tried digging into the PHP FTP extension ??

TuK
  • 3,556
  • 4
  • 24
  • 24