On Linux based systems, data fetched by filesize()
is “statcached”.
Try calling clearstatcache();
before the filesize call.
More Related Contents:
- PHP x86 How to get filesize of > 2 GB file without external program?
- Check file size before upload
- PHP filesize MB/KB conversion [duplicate]
- s3 direct upload restricting file size and type
- PHP post_max_size overrides upload_max_filesize
- PHP include(): File size & performance
- Not receiving emails [phpmailer]
- fetch data inmultidimensional array in PHP [closed]
- CodeIgniter removing index.php from url
- if block inside echo statement?
- Detect Browser Language in PHP
- Fatal error: Class ‘PHPMailer’ not found
- How can I get the user’s local time instead of the server’s time?
- Generating a drop down list of timezones with PHP
- How to use spl_autoload() instead of __autoload()
- Why use a framework with PHP? [closed]
- Does UTC observe daylight saving time?
- The CSRF token is invalid. Please try to resubmit the form
- Returning Multiple Rows with MySqli and Arrays
- How do I get a PHP class constructor to call its parent’s parent’s constructor?
- http_build_query with same name parameters
- org.json.JSONException: Value
- How to store .pdf files into MySQL as BLOBs using PHP?
- Remove Trailing Slash From String PHP
- How to select rows where column value IS NOT NULL using CodeIgniter’s ActiveRecord?
- How to make Apache serve index.php instead of index.html?
- I’m getting this error code: Invalid argument supplied for foreach() [duplicate]
- Converting to date in PHP from yyyymmdd format
- In PHP, how do I generate a big pseudo-random number?
- Optional parameter in the middle of a route