PHP File Logic Functions : file function « File Directory « PHP






PHP File Logic Functions

 
is_dir()               Determines if the file is a directory.
 
is_executable()        Determines if the file is executable by PHP.
 
is_file()              Determines if the filename is an actual file or a symbolic link to a file (returns true if a real file).
 
is_link()              Determines if the file is a symbolic link or an actual file (opposite of is_file()).
 
is_readable()          Determines if PHP is able to read from the given file.
 
is_uploaded_file()     Determines if the given file was uploaded to the server via the Web server.
 
is_writeable()         Determines if PHP is able to write to the given file.
 
file_exists()          Determines if the given file exists.
  
  








Related examples in the same category

1.Reading a File into an Array
2.file.php