How do you check if a file exists on the server?
how about
is_file("/usr/local/xxxx")
file_exists("/path/file"); ?