I want to include a file 'one.php' in my project. But in file 'one.php' one more file 'b.php' in already included which is actually the header. I just want one.php file to be included in my project not 'b.php' file. What can i do
kindly help me in this regard.
problem while include a file
Moderator: General Moderators
- feyd
- Neighborhood Spidermoddy
- Posts: 31559
- Joined: Mon Mar 29, 2004 3:24 pm
- Location: Bothell, Washington, USA
several options come to mind:
- create a copy of one.php that doesn't have b.php included
- rewrite all files including one.php to include b.php where needed, removing it from one.php.
- add logic into one.php that tells it whether or not to add b.php. This can be done via a variable or analyzing the callstack.