View Single Post
Old 08-23-2008, 01:28 AM   #17 (permalink)
sketchMedia
The Prestige
Advanced Programmer Top Contributor Good Samaritan 
 
sketchMedia's Avatar
 
Join Date: Oct 2007
Location: Manchester, UK
Posts: 854
Thanks: 32
sketchMedia is on a distinguished road
Default

To get the current document path you could use this:
PHP Code:
define('SITE_ROOT'dirname(__FILE__)); 
and you could also use realpath so that you can go up a directory etc:
PHP Code:
define('SITE_ROOT'realpath(dirname(__FILE__) . DIRECTORY_SEPARATOR '..' DIRECTORY_SEPARATOR)); 
__________________
mysql> SELECT * FROM `users` WHERE `users`.`clue` > 0;
Empty set (0.00 sec)
sketchMedia is offline  
Reply With Quote
The Following User Says Thank You to sketchMedia For This Useful Post:
delayedinsanity (08-23-2008)