Re: [PHP] Getting name of the main file from external included script..

2001-03-14 Thread Christian Reiniger
On Tuesday 13 March 2001 00:14, you wrote: > I already asked this once before, but nobody seems to answer. That's > why I'm re-writing > my question. Well, you waited about two hours. That's not much, even for a mailinglist like php-general. -- Christian Reiniger LGDC Webmaster (http://sunsit

RE: [PHP] Getting name of the main file from external included script..

2001-03-13 Thread Johnson, Kirk
Aviv, I'm not quite sure what you are asking. If you are just doing an include() or a require() on a chunk of code, then I think the usual server variables will give you the path of the main file, e.g. $PHP_SELF. If you are doing a *redirect* to a *different page*, then you could look at $HTTP_REF