I use this function http://us.php.net/manual/en/function.filesize.php#115792 to get file/folder size over 2 GB on 32bit/64bit platforms.
function my_filesize($fp) {...}
$dir = opendir( 'my_path' );
print my_filesize($dir);
function my_filesize($fp) - see link above.
But I get Fatal error: Maximum execution time of 30 seconds exceeded in C:\... on line *
This is line:
if (0 === fseek($fp, - $step, SEEK_CUR)) {
I try use set_time_limit(0). Of course it doesn't work.
If I use http://us.php.net/manual/en/function.filesize.php#113457 I get the same.
What do I do?
EDIT 2: It's seem I need use not opendir. I must use fopen and path must contain file, not directory.