[Pmwiki-users] Install with PHP as CGI: wrong $PageUrl
Patrick R. Michaud
Mon Sep 8 22:48:41 CDT 2003
On Mon, Sep 08, 2003 at 05:13:00PM +1000, Nathan Jones wrote:
> Second reply to myself:
> I wrote:
> >I seem to get the following error no matter what I put in local.php:
> >Warning: Cannot add header information - headers already sent by ...
> Have now realised that the contents of local.php need to be enclosed
> within <? ?>.
Actually, you should use <?php ... ?> just to be on the safe side.
> I have hard coded the value $ScriptUrl, but I don't know
> if this is a good idea. Links now work, but there may be a point where
> something breaks. If hard coding is the correct approach, I'll need to
> hard code $ScriptDir (to get the image to display) and possibly other
Hardcoding $ScriptUrl and $ScriptDir are perfectly valid approaches.
PmWiki tries to guess $ScriptUrl and $ScriptDir for the most common
installation environments, but since there are some weird ones out there
PmWiki does allow local.php to set them explicitly if the ones that
were supplied to PmWiki are wrong.
More information about the pmwiki-users