PHP Classes

examples

Recommend this page to a friend!

      PHP File Info Class  >  All threads  >  examples  >  (Un) Subscribe thread alerts  
Subject:examples
Summary:examples
Messages:3
Author:Superluk
Date:2019-09-16 17:25:38
 

  1. examples   Reply   Report abuse  
Picture of Superluk Superluk - 2019-09-16 17:25:38
can you post some examples ... ? thank you

  2. Re: examples   Reply   Report abuse  
Picture of Rich Rohde Rich Rohde - 2019-09-16 18:01:06 - In reply to message 1 from Superluk
Thank you for requesting an example. I have provided example in the description and should be approved soon.

Here is what I provided

Source:

$fileUtil = new \RichWare\fileinfo\v1_0_0\TFileInfo();
$fileUtil->fileinfo('E:\Program Files\PHP\7.2.6\php.ini');
echo "Modified date: ".$fileUtil->mtime_fmt.PHP_EOL;
echo "Size: ".$fileUtil->size.PHP_EOL;
echo "Basename: ".$fileUtil->basename.PHP_EOL;
echo "Type: ".$fileUtil->type.PHP_EOL;
echo "Accessed date: ".$fileUtil->atime.PHP_EOL;
echo "Accessed formatted date: ".$fileUtil->atime_fmt.PHP_EOL;

Result:

Modified date: 09-09-2019 01:33:57
Size: 72530
Basename: php.ini
Type: file
Accessed date: 1568061237
Accessed formatted date: 09-09-2019 01:33:57

  3. Re: examples   Reply   Report abuse  
Picture of Superluk Superluk - 2019-09-16 18:33:05 - In reply to message 2 from Rich Rohde
Works Perfect - Great Job - trank you