[pmwiki-users] Paths

marc gmane at auxbuss.com
Sun Oct 1 13:11:52 CDT 2006


Charles Little said...
>  
> I'm trying to set a path to include a cookbook in my wiki.  None of the
> methods I try work, i.e.
>  
> full url: include_once("http://wiki.gamera.cc/cookbook/mediacat.php")
> or relative url: include_once("../cookbook/mediacat.php")

In your config.php the usage for a recipe is usually:

  include_once("$FarmD/cookbook/recipefile.php");

For a non-farm, you only need:

  include_once("cookbook/recipefile.php");

But I think the former works for farms and non-farms, and has the 
benefit of being forward compatible.
 
-- 
Best,
Marc





More information about the pmwiki-users mailing list