file_exists Checks whether a file or directory exists Description boolfile_exists stringfilename Returns &true; if the file or directory specified by filename exists; &false; otherwise. On windows, use //computername/share/filename or \\computername\share\filename to check files on network shares. Testing whether a file exists ]]> ¬e.clearstatcache; &tip.fopen-wrapper.stat; See also is_readable, is_writable, is_file and file.