How to use Filesystem fstat in PHP
In this article I am going to explain about fstat function in PHP.
PHP fstat() Function
The filesystem fstat function is used to returns information about an open file.
Syntax of fstat function
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:
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