This may have been asked before, I\'m new to PHP and I\'m trying to learn as much as I can, but this has really thrown me.
Basically what I want to know is, how would I
Update: I was kindly corrected that this doesn't use sftp, but instead uses ftps. Here's a Stackoverflow link discussing using PHP to do SFTP.
The PHP docs already cover most of what you should need for this. Here's an example for fetching a list of the contents in the remote directory: