[Pmwiki-users] $PubDirUrl
Patrick Ogay
lists
Wed May 12 08:14:57 CDT 2004
I have a directory structure: http://www.blug.ch/wiki/
handler wiki is: <?php chdir("./pmwiki-0.6.18"); include
("pmwiki.php"); ?>
/ resides on /
pmwiki-0.6.18
pmwiki.php
pub (und so on)
As I see, now $pubDirUrl is not correct and CSS are not found.
I'm looking for a general solution, as it would be possible to run
several pmwki-version depending on the handlername.
.
The solution with chdir works, but doesn't have influence on following
sequenz in pmwiki.php
$ScriptUrl .= $HTTP_SERVER_VARS['SCRIPT_NAME'];
$PubDirUrl = preg_replace("#/[^/]*\$#","/pub",$ScriptUrl,1);
regards
Patrick Ogay
More information about the pmwiki-users
mailing list