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; This function returns &false; for files inaccessible due to safe mode restrictions. However these files still can be included if they are located in safe_mode_include_dir. See also is_readable, is_writable, is_file and file.