PHP fileperms() Function

PHP fileperms Function


Definition :

The PHP fileperms() function returns permissions for the given file.

Note: The results of this function are cached. Use clearstatcache() function to clear the cache.

Syntax

  fileperms(filename)

Parameter 
Parameter Description
filename Required. Specifies the path to the file to check

Given below example Return the file permissions for "demo.txt":

Output : 33206