Posted By

Zwendel on 10/23/09


Tagged

baseurl


Versions (?)

Who likes this?

3 people have marked this snippet as a favorite

silentbob84
Priestd09
fhenderson


Fast way to get the base dir of a page


 / Published in: PHP
 

  1. $baseURL = dirname($_SERVER['REQUEST_URI']);

Report this snippet  

You need to login to post a comment.