$_SERVER['PHP_SELF'] worked perfect,
Thanks JHarris...
I knew it had to be something simple. I haven't programmed any php since they changed the default to "register_globals = off" and I just can't seem to get my head around it.
EDIT:
I was reading the link provided above and found an even more succinct solution:
$_SERVER['SCRIPT_FILENAME']
From php manual:
"The absolute pathname of the currently executing script. "
I did need the absolute path so this saves me from:
Code:
$foo = $_SERVER['DOCUMENT_ROOT'] . $_SERVER['PHP_SELF']
or even worse:
Code:
$foo = "/path/to/my/shizzle" . $_SERVER['PHP_SELF']
Thanks again