File Directory Php

   $dir = dirname($SCRIPT_FILENAME);
   print $dir;
?>