SyntaxFix
Write A Post
Hire A Developer
Questions
Yes, there is better. Check the stat or the fstat function
stat
fstat