PHP realpath April 19, 2012 Pramod T P It returns canonicalized absolute pathname Example <?php chdir(‘/usr/local/’); echo realpath(‘./../../var/www/’); ?> Ouput /var/www