Re: Name of page itself? [message #177215 is a reply to message #177213] |
Tue, 28 February 2012 10:14   |
tdk2fe
Messages: 1 Registered: February 2012
Karma:
|
Junior Member |
|
|
Magic constants - in this case __FILE__.
http://php.net/manual/en/language.constants.predefined.php
On Tuesday, February 28, 2012 3:58:03 AM UTC-6, Sonnich Jensen wrote:
> Hi
>
> I have not worked with PHP for 2+ years, now again and need to refill
> my brain...
>
> How can I get the name of the main page?
>
> Say, index.php includes menu.php, how do I get the name of the main
> page, in this case index.php?
> Next say page1.php, page2.php etc?
>
> Sonnich
|
|
|