How to use Filesystem fileperms in PHP

In this article I am going to explain about fileperms function in PHP.
  • 1234

PHP fileperms() Function

The filesystem fileperms function is used to get  file permissions.

Syntax of fileperms function

fileperms(filename)

Parameters in fileperms function

It has only one parameter:

Parameter Description
filename It specifies the file to check.

Example of filesystem fileperms function

<html>

<body>
 

<?php

echo fileperms("C:\wamp\www\Dinesh\PhpIntro.txt");

?>
 

</body>

</html>


Output:

filepermsfunctionphp.jpg

You may also want to read these related articles :
here

Ask Your Question 

Got a programming related question? You may want to post your question here

Programming Answers here

Categories

More Articles

© 2020 DotNetHeaven. All rights reserved.