How to use Filesystem lstat in PHP

In this article I am going to explain about lstat function in PHP.
  • 1233

PHP lstat() Function

The filesystem lstat function gives information about a file or symbolic link.

Syntax of lstat function     

lstat(file)

Parameters in lstat function

It has only one  parameter:

Parameter Description
file It specifies the file to check.

Example of filesystem lstat function

<html>

<body>
 

<?php

print_r(lstat("C:\wamp\www\basename.php"));

?>
 

</body>

</html>

 

Output:

lstat-php-function.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.