yes... assuming the permissions on the file that your looking to replace allow write access from the permission of php... The command your probably looking for is in the file system functions of php, the easiest of which to use is probably file_put_contents().
This is assuming that your hosting provider has the file system commands turned on as well.
Of course, if your just looking for FTP to a directory, you might be better off getting new host ;-)