Okay,, I have found a ftp php function as followed...
$conn_id = ftp_connect("account_id.example.com");
// login with username and password
$login_result = ftp_login($conn_id, "account_id", "password");
// get contents of the current directory
$contents = ftp_nlist($conn_id, ".");
// output $contents
var_dump($contents);
However i get the errors,
Warning: ftp_login() expects parameter 1 to be resource, boolean given in /nfs1/x/www/index.php on line 8
Warning: ftp_nlist() expects parameter 1 to be resource, boolean given in /nfs1/x/www/index.php on line 11