Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am mattvot on github.
  • I am mattvot (https://keybase.io/mattvot) on keybase.
  • I have a public key ASByL0V3rndfx3pR8WTpSCxb6hmHa8f4JHJX0_CffATamQo

To claim this, I am signing this object:

@mattvot
mattvot / realFileSize.php
Last active August 29, 2015 14:17
Filesize method that works with files >2GB on 32bit PHP
<?php
/**
* Filesize method that works with files >2GB on 32bit PHP
*
* @link http://php.net/manual/en/function.filesize.php#113457
* @param string $file Path to file
* @return int|float Size of file
*/
function realFileSize($file)