Posted By

radarseven on 07/23/09


Tagged

server


Versions (?)

Who likes this?

2 people have marked this snippet as a favorite

vali29
pster


Return host directory in PHP


 / Published in: PHP
 

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

  1. <?php
  2. dirname($_SERVER['PHP_SELF']);
  3. ?>

Report this snippet  

You need to login to post a comment.