![]() |
Add second php include group or for certain pages??
Ok I'm wondering if it's possible to create a secondary php includes template or a way to get a php file to only work on a couple of pages. I just need a php to be included on a few pages of the site and it screws up if it's added in wrong spots :(
|
In your phpinclude template put something like this:
Code:
if (substr($PHP_SELF, -strlen('filename.php')) == 'filename.php') { |
I think this is a very nice tip and a lot of good hack can be structured around this hint..May I suggest publishing it in Hacking Hints Board?
|
Ask and ye shall receive. :)
|
All times are GMT. The time now is 06:08 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|