Re: [PHP] Finding Out Document That Included Another File

2001-07-12 Thread Aral Balkan
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 t

[PHP] Finding Out Document That Included Another File

2001-07-12 Thread Jeff Gannaway
I have a PHP file that gets included by a lot of other files in a lot of other directories. Among other things, this file needs to display a link to that original page. I know I could specify this in a variable in each original file before the INCLUDE statement, but I'd like to do something more