[pmwiki-users] there's still trouble down on t' farm

rickla rickla.rick at gmail.com
Tue Mar 15 00:41:47 CST 2005


Thanks to Neil, Hans and PM for your continued interest. I'm afraid my
problems live on. Let me first summarize some key settings I've made:

In my field's index.php file I have:
<?php include('../pmwiki/pmwiki.php'); ?> only.

In the field's local/config.php file, I have lines like:

include_once("$FarmD/cookbook/extendmarkup.php");
include("$FarmD/cookbook/bibtexref/bibtexref2.php");

All the cookbook recipes I've called in this way are working fine.
This is what fooled me into thinking things were going ok. In fact, I
just happen to have tackled cookbook things first this time around.
Attempting to do similar things with scripts, I tried, for example,

include_once("scripts/rss.php");
include_once("$FarmD/scripts/rss.php");

and both versions with single quotes and got a PHP error every time.
My stopgap measure was to copy the scripts folder into the field, and
now things are working really nicely with
include_once("scripts/rss.php");
But this kind of defeats the purpose of having a farm and my hosting
service isn't very generous with diskspace! What have I done wrong?

In addition, every attempt to set $ScriptUrl and $PubDirUrl failed, so
I commented out these two. In actual fact, I'm very confused about
what $ScriptUrl actually means. The name suggests that it tells PmWiki
where to fetch scripts from, but that doesn't make much sense because
"include" does the same thing. "sample-config.php says that it's "your
preferred URL for accessing wiki pages", which implies to me that you
could write any URL you liked and it would be redirected to the actual
page, but that doesn't seem very likely. Can anyone give a simple
explanation?

Thanks for your patience,
Rick



More information about the pmwiki-users mailing list