Search Results

  1. SplFileInfo::getPerms (PHP 5 >= 5.1.2, PHP 7, PHP 8) SplFileInfo::getPerms — Gets file permissions

  2. Jul 11, 2025 · The SplFileInfo::getPerms () function is an inbuilt function of Standard PHP Library (SPL) in PHP which is used to get the permission of the file. Syntax: int SplFileInfo::getPerms( void ) Parameters: This function does not accept any parameter. Return values: This function returns the permission of file.

  3. SplFileInfo::getPerms (PHP 5 >= 5.1.2, PHP 7, PHP 8) SplFileInfo::getPerms — Gets file permissions

  4. Return Values Returns the file permissions on success, or false on failure.

  5. The SplFileInfo class Introduction The SplFileInfo class offers a high-level object-oriented interface to information for an individual file.

  6. User Contributed Notes There are no user contributed notes for this page.

  7. Methods public __construct () — Construct a new SplFileInfo object __toString () — Returns the path to the file as a string getATime () — Gets last access time of the file getBasename () — Gets the base name of the file getCTime () — Gets the inode change time getExtension () — Gets the file extension