I'm using PHP on XAMPP with Windows 10:
I have a local page in which I need to read the file size of all videos in a folder.
Until now I used the filesize()
function:
filesize("_video_/".$file)
For videos larger than 2Gb, this function, returns a negative value so I found a solution online where you can just add (4*1024*1024*1024)to the result and everything worked well.
Now I've a video larger than 10Gb and the result isn't right. It is a positive number but it's a lot smaller than the real one.
Are there ways to do that?