Using PHP __DIR__

PHP __DIR__  returns the current working directory, its usage is common when including files as you don’t have to dynamically define the directory each time. Simply running echo __DIR__; Will…