Personally, I would do this somewhere outside vBulletin (or whatever public page you were going to use it in) and put it in a cronjob on the server. That way everytime someone loads the page, they wouldn't steal a connection to the FTP-server.
Imagine running something like Issvar's script on a high traffic site, like this. Every pageload would generate 1 connection to the FTP-server. It would probably slow the server down, as well as forcing you to increase the max number of connections...
|