dirname « File Directory « PHP






1.dirname.php
2.Use dirname() with predefined variable $SCRIPT_FILENAME to obtain the complete path of the script executing the command