dir name php

PHP
<?php
dirname(__FILE__);
?>
Source

Also in PHP: