Heya folks. Anybody know an Apache server variable that will return either the script’s current directory or the absolute address of the directory the script is in?
Example: if my .htaccess file is in http://site.com/dir3/, I need a variable that returns either /dir3/ or dir3/ or dir3 or http://site.com/dir3/
Any ideas?