Is there any way to find out if a php script is accessed directly or it's included.
- Suppose we don't where it's included, so setting session variable won't solve the problem. I can not check where it's included. it may be more than 20 places!
- It should be detected in php script. (via php functions and variables)