Can it be possible to include a PHP
file into another file which is already included in many other files on different paths
For example I have the following files and directories:
domain/include/header.php
domain/include/body.php
domain/include/user_data.php
header.php
file contains user_data.php
and header.php
file itself contained in many other pages on different location:
domain/index.php
domain/home/index.php
domain/home/user/index.php
I want to access my user_data.php
file within one(i.e header.php) and don't want to include it again and again in each file.
How is this possible?