[pmwiki-users] Re: still can't get my farm working

george gjeyaraj at gmail.com
Tue Mar 15 16:32:46 CST 2005


can any one say how do i make group based template?

thanks
george
----- Original Message -----
From: "V.Krishn" <mistyfire at autograf.pl>
To: <pmwiki-users at pmichaud.com>; """Patrick R. Michaud"""
<pmichaud at pobox.com>
Cc: "rickla" <rickla.rick at gmail.com>
Sent: Tuesday, March 15, 2005 1:14 PM
Subject: [pmwiki-users] Re: still can't get my farm working


> On Tuesday 15 March 2005 03:57, pmwiki-users-request at pmichaud.com wrote:
> > On Mon, Mar 14, 2005 at 04:14:36PM -0500, Neil Herber wrote:
> > > At 2005-03-14 11:24 AM -0600, Patrick R. Michaud is rumored to have
said:
> > > >> 3. In pmwiki, renamed pmwiki.php as index.php (thanks for that
> > > >> suggestion, Neil!)
> > > >
> > > >It's okay to rename pmwiki.php as index.php, but admins often forget
> > > >this when they upgrade. Better is to create a symlink or shortcut
> > > >from index.php to pmwiki.php.
> > >
> > > Please note that my original suggestion was related to fields in wiki
> > > farms, viz:
> > > [...]
> > >
> > > The field-based index.php file(s) has(have) the following contents:
> > >
> > > <?php
> > > include('X:/file/path/to/pmwiki/pmwiki.php');
> > > ?>
> > >
> > > This means that upgrades are just a drop in.
> >
> > Good point! And it's worth pointing out that this trick also
> > works in the farm directory as well as the field directories,
> > and therefore ought to become a (or perhaps *the*) standard
> > mechanism for admins who would otherwise rename pmwiki.php to index.php.
> >
> > Pm
> Yes please, it took me some time to come up with a generic mechanism for
all
> my fields.
> Here's what I prefer in all fields (applicable to farm too):
> In my field's root I create a file "channel.php" and put this single line.
>           include('file/path/to/pmwiki/pmwiki.php');
> Then in same dir I create another file "index.php" and inserted the
following:
>          header("Location: http://" . $_SERVER['HTTP_HOST'] .
>                      dirname($_SERVER['PHP_SELF']) . "/" . "channel.php");
> (though I sometimes use relative path in header( ) but the man pages says
to
> use full URI) : ie.
>          header("./channel.php");
>
> I prefer channel.php over index.php to be the root script file because, I
> remember reading some comment by pm of SearchEngines dropping text after
> index.php, i.e "?n=...." would be dropped. Secondly, about some
mishandling
> if you use webalizer. ....... :-) honestly speaking i did not understand
much
> of it then... and still trying to understand much of it now.
>
> But then I have come of this universal solution for my farming purposes.
>
> V.Krishn
> _______________________________________________
> pmwiki-users mailing list
> pmwiki-users at pmichaud.com
> http://pmichaud.com/mailman/listinfo/pmwiki-users




More information about the pmwiki-users mailing list