Posted by laredotornado@zipmail.com on 06/30/07 21:18
Hi,
I'm using PHP 4.4.7. When I define a constant as
define("SITE_ROOT_DIR", dirname(__FILE__));
the result is the value ".". The real directory path should be "/home/
myaccount/web". So I tried
define("SITE_ROOT_DIR", realpath(dirname(__FILE__)));
on the advice of another, but now I'm getting an empty string. Any
ideas how to overcome this? I'd prefer not to hard code paths because
my development server path is different.
Thanks, - Dave
[Back to original message]
|