[pmwiki-users] including php files

Hans design5 at softflow.co.uk
Wed Apr 25 10:06:36 CDT 2007


I have a problem with Fox and how to include extension scripts (fox
filters) for it.

I would like to generally be able to include Fox filter extensions
just for the page or group they are needed, but include Fox generally
for all pages. But I need to include the extensions before including
fox.php. So I cannot use local/Group.php or Group.Page.php (since they
load later than config.php).

And when I use in config.php something like

$page = PageVar($pagename, '$FullName');
if($page == 'Group.SomePage') {
    include_once("$FarmD/cookbook/foxfilterA.php");
}
include_once("$FarmD/cookbook/fox.php");

it does not work either to my surprise.

Ideally for some more complex recipes as for FoxForum I like to supply
with the distribution a local/ForumGroup.php file which has all
necessary customisations for the forum group, and also the code to
load the necessary filter extensions. But fox.php may already be
included in config.php.

Is there a good solution for his problem?
Help is much appreciated, I am really stuck with this problem.


  ~Hans   




More information about the pmwiki-users mailing list