The Simplest Way to Reverse Python List – Python Tutorial
Best Practice to Reverse Python String – Python Tutorial
Implement Circular Progress Bar with Pure CSS – CSS Tutorial
Python Compress Image without Width and Height Reduce – Python Tutorial
Force Download HTML and TXT Files in PHP – PHP Tutorial
Understand Python Global Variable for Beginners – Python Tutorial
Best Practice to Enable Chrome Reader Mode – Chrome Tips
A Simple Way to Get File Extension in PHP – PHP Tutorial
Best Practice to Calculate Directory Size in PHP – PHP Tutorial
To calculate a directory size in php, there are some methods:1.If you are using windows system, you can use php to parse dir command. Meanwhile, if your pc is linux, you also can parse du command. 2.Iterate size of all files in this directory and sum them. In this tutorial, we will introduce using method 2 to calculate a directory size using php.