Includ to know who is running?

there is a line include "start.php"; is index.php

as cranite start.php bring out the old that it started Index.php ?
March 19th 20 at 08:52
2 answers
March 19th 20 at 08:54
well, for example $_SERVER['PHP_SELF']
but in General this question suggests that you are doing something wrong and need more context.
why suddenly need to know in what file the include was called?
in the General case, without the crutches of hell is not to know, and it is better therefore not to zamorachivatsya.
the condition that 10 pages Odnotan not to produce - Annamarie53 commented on March 19th 20 at 08:57
I think you need to include_once - dorothy5 commented on March 19th 20 at 09:00
@dorothy5, and so - Annamarie53 commented on March 19th 20 at 09:03
March 19th 20 at 08:56
it is better not to use includ\requir the most =)

Find more questions by tags PHP