file_exists
file_exists
(PHP 4, PHP 5, PHP 7)
file_exists — Checks whether a file or directory exists
Description
bool file_exists ( string $filename )
Checks whether a file or directory exists.
Parameters
-
filename
-
Path to the file or directory.
On windows, use //computername/share/filename or \\computername\share\filename to check files on network shares.