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

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -