I\'m using WAMP and have a development site in the www directory. I want to use dirname(__FILE__) to define the path to the server root.
Currently I\'m
It looks like you just need to have
define('PATH', $_SERVER['SERVER_NAME']);
If you want to be super technical, you can do something like this instead.
define('PATH', str_replace($_SERVER['DOCUMENT_ROOT'], $_SERVER['SERVER_NAME'] . '/', dirname(__FILE__)));
On a side note, and more importantly, you don't actually need them. This will work.
When a href begins with a directory separator, it is considered relative to the document root, not the current working directory.