[pmwiki-users] index.php
Benjamin Wilson
ameen at dausha.net
Thu Jul 21 00:26:27 CDT 2005
We don't overwrite local/config.php because it intrudes on the local
installation. Likewise, overwriting index.php would intrude upon the
local installation. Therefore, we should not overwrite.
I have a few wiki farms going, and I have a way to deftly change from
one version of PmWiki to another that uses index.php. If you overwrite
that file, it will ruin my local setup.
The less intrusive action is to provide sample-index.php. Although,
having three ways of accessing pmwiki (e.g. pmwiki.php, index.php, and
sample-index.php) presents a greater security threat, IMO. I mean, I
only have one PHP script callable by the browser.
Ben
Neil Herber wrote:
> At 2005-07-20 09:17 PM -0700, H. Fox is rumored to have said:
>
>> I like the idea of including a sample one-liner index.php. Maybe
>> include a short explanatory comment, like
>>
>> <?php
>> ## index.php for a PmWiki installation
>> include('pmwiki.php');
>
>
> I like this idea too, but would expand it to:
>
> <?php
> ## index.php for a PmWiki installation
> include('pmwiki.php');
> ## for a field in a farm, comment out the previous line (put a # in
> front of it)
> ## and uncomment the following line (remove the #) -- BE SURE TO SET
> file/path/to correctly
> #include('file/path/to/pmwiki.php');
>
>
> hmmm .... that looks pretty clumsy .... maybe:
>
> <?php
> ## index.php for a PmWiki installation
> ## for a field in a wikifarm, BE SURE TO SET file/path/to/ correctly
> ## for a single wiki with index.php and pmwiki.php in the same
> directory, remove file/path/to/ from the following line
>
> include('file/path/to/pmwiki.php');
>
> Or maybe this should just be a big note on the wikifarms page.
>
>
> Neil
>
> Neil Herber
> Corporate info at http://www.eton.ca/
> Eton Systems, 15 Pinepoint Drive, Nepean, ON, Canada K2H 6B1
> Tel: (613) 829-4668
>
> _______________________________________________
> pmwiki-users mailing list
> pmwiki-users at pmichaud.com
> http://host.pmichaud.com/mailman/listinfo/pmwiki-users
>
>
>
>
More information about the pmwiki-users
mailing list