Gets the current working directory in PHP
using getcwd() – gets the current working directory – php function echo getcwd(); using dirname() php function echo dirname(__FILE__); echo dirname($_SERVER[PHP_SELF]); using basename() php function – (PHP5+) echo basename(__DIR__) so if
View the file size of a directory in LINUX – Folders and Subfolders
If we want to see what is the size occupied by folders or subfolders in linux, we can use the du command, that is a