Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在带有 Windows 10 的 XAMPP 上使用 PHP:
我有一个本地页面,我需要在其中读取文件夹中所有视频的文件大小。
直到现在我使用的filesize()功能:
filesize()
filesize("_video_/".$file)
对于大于 2Gb 的视频,此函数返回负值,因此我在网上找到了一个解决方案,您只需将 (4*1024*1024*1024) 添加到结果中,一切正常。
现在我有一个大于 10Gb 的视频,结果不正确。这是一个正数,但它比真实的小很多。
有没有办法做到这一点?