file - is_file or file_exists in PHP -
I need to see if a file is on the HDD at the specified location ($ path. $ File_name).
is_file () will return false if the given path indicates a directory. file_exists () will return true if the given path points to a valid file or directory it will completely rely on your needs. If you want to know especially , then use this file if is a file or not, then use is_file () . Otherwise, file_exists () .
Comments
Post a Comment