08-23-2008, 01:28 AM
|
#17 (permalink)
|
|
The Prestige
Join Date: Oct 2007
Location: Manchester, UK
Posts: 854
Thanks: 32
|
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)
|
|
|
|