#Display current directory #https://codepad.co/snippet/bd2c9f Both of function display for current directory. <?php echo __DIR__."<br/>"; ?> or <?php $path = getcwd(); echo $path; ?>