Return to Snippet

Revision: 16016
at July 23, 2009 09:45 by radarseven


Initial Code
<?php
dirname($_SERVER['PHP_SELF']);
?>

Initial URL

                                

Initial Description
Returns only the directory path to the current file — no host or filename, just URI directory structure.

Initial Title
Return host directory in PHP

Initial Tags
server

Initial Language
PHP