Provide details about the open file back to me:erroneous
<?php $file = fopen(“test.txt”,“r”); print_r(fstat($file)); fclose($file); ?> |
The information about an open file is returned by the fstat() function.
Note: This function’s output will vary depending on the server. Either the name index, the number index, or both may be present in the array.
Advice: This function is comparable to stat(), but it requires that the file be open in order to work.
fstat(file) |
Parameter |
Description |
file |
Essential. indicates which open file to examine. |
Return Value: |
An array containing the open file’s details: [1] or [ino] – Inode count |
PHP Version: |
4.0+ |