Open oleteacher opened 5 years ago
Hey, I think same Problem is here.. But only when i include it to my template. When i use it itselfe no Problems. You can solve it?
filemtime(): stat failed for
Pretty sure something to do with path, but found no solution.
there must be a way to change the path. You have the index.php in your folder directory or you include ?
"there must be a way to change the path. You have the index.php in your folder directory or you include ?"
Path is not the real issue. I have the index.php in the directory, not include.
The issue is after making mod mentioned in https://github.com/halgatewood/file-directory-list/issues/5
Once the path is set:
$items = scandir( dirname(__FILE__) . '/pdf/files' );
I have the warnings and 0 byte files size.
Hello, I tried to use the script outside its folder (something like "../folder/etc"). To make it working I needed to change the function ext() in this way, I think it can solve the warnings:
function ext($filename) { if (is_dir($filename)==false): return substr( strrchr( $filename,'.' ),1 ); else: return false; endif; }
Hey, great simple little script! Thanks for sharing.
I followed instructions @ https://github.com/halgatewood/file-directory-list/issues/5 to change listing dir and it works, but getting errors like:
Any ideas how to solve and get the time / size showing? File Size show 0 and time is THU. JANUARY 1ST, 1970 - 01:00AM
Running PHP 7.3
Thanks again.