The way PHP works currently, $PHPSELF will point to your original file.
This is actually a problem, as it means that you cannot use relative
includes in the included file if its in a different directory. There's
currently discussion on the PHP-DEV list about changing this. Perhaps
there's going to a be a new include_local function or, ideally, I'd love it
if there was an environment variable set up that pointed to the included
page so the script could handle any relative includes (or HTML links, for
that matter) itself.
For your purposes though, $PHPSELF should work.
Hope this helps.
Aral :)
______________________________
([EMAIL PROTECTED])
New Media Producer, Kismia, Inc.
([EMAIL PROTECTED])
Adj. Prof., American University
ŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻ
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]