Read a file in another folder in FTP using PHP

I want to read and write a file from another server to my server but don't know how to achieve this.

Secondly I want to fire this function on hourly basis so that it hit the server from where file has to be picked and put into my server folder.