How to use Filesystem fstat in PHP

In this article I am going to explain about fstat function in PHP.
  • 1285

PHP fstat() Function

The filesystem fstat function is used to returns information about an open file.

Syntax of fstat function

fstat(file)

Parameters in fstat function

It has only one parameter:

Parameter Description
file It specifies the open file to check.

Example of filesystem fstat function

<html>

<body>
 

<?php

$file = fopen("C:\wamp\www\Dinesh\Mcn.txt","r");

print_r(fstat($file));

fclose($file);

?>
 

</body>

</html>

 

Output:

fstatfunctionphp.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.