i'm creating ftp browser jquery (see does know of jquery ftp browser plugin? history). i'm writing server-side code interfaced ajax call via jquery. don't want keep logging in (on server side) , cwd'ing around.
any thoughts?
my first thought storing connection in session variable won't work because code exits, destroying connection. if wrong in that, there answer :-d
if right, think single (php) program ('service'), keeps on running, maintains ftp connections, , provides interface these connections through (for instance) socket connection. connection accepts local connections!
your jquery->ajax call start new php program (of course), authentication , security checks (quite important), connects 'service' described above , communicates whatever needed.
alternatively, replace ajax javascript-socket connection directly 'service'. again, security important issue! don't know if jquery can out that, believe google has libraries though.
Comments
Post a Comment