I’m having a problem getting file size and MD5 for files in a folder on my web host using php. Here’s a sample of the code as currently written.:
<?php
$srcs = glob('download/*.tar.*');
$src = $srcs[count($srcs) - 1];
$srcname = basename($src);
$md5src = md5_file($src);
print_r $srcname;
print_r $md5src;
I’m not getting anything from the print_r commands.