File Directory on another server

is it possible to get the file listing in a directory on another server if you have all of the login information ?

would the server that you are reading the files from require php ?

the reason i’m asking is i have one server that i pay about £4/mo for, just so that i can use php in it - but i’m wondering if it’s possible just to get rid of php on that server (meaning in pay nothing for it) and just use the server space and php on another server.

thanks in advance