realpath.php : realpath « File Directory « PHP






realpath.php

 
<?php
     $imgPath = "../cover.gif";
     $absolutePath = realpath($imgPath); 
     echo $absolutePath;
?>
  
  








Related examples in the same category

1.Cleaning up a file name with realpath()