[pmwiki-users] MarkupExpressionsExtensions

Dominique Faure dominique.faure at gmail.com
Sun Apr 15 15:11:53 CDT 2007


On 4/15/07, The Editor <editor at fast.st> wrote:
> On 4/15/07, Patrick R. Michaud <pmichaud at pobox.com> wrote:
> > The Editor wrote:

[...]

> > - I think {(server ...)} really ought to use the actual $_SERVER
> >  names instead of introducing its own.  Otherwise authors have
> >  to learn a different set of names for things that already have names.
>
> Perhaps, but an admin that knew enough php to know all the server vars
> would probably just be doing page variables or setting up their own
> local extensions. My position as usual is to help those who don't
> really know php.  Here's a comparison of the terms I chose and the
> actual definitions.  Perhaps others would like to weigh in on which
> would be simpler or more clear to use:
>
> return        HTTP_REFERER
> browser     HTTP_USER_AGENT
> secure       HTTPS
> ip              REMOTE_ADDR
> host          SERVER_NAME
> software    SERVER_SOFTWARE
> query        QUERY_STRING
>
> Though Pm is quite good at choosing syntax, I think in general we tend
> to need an advocate on this list for the non programmers who use
> PmWiki.  Also I should note, things like software and browser are
> useful places for the strpos function we discussed earlier...
>

For the record, these variable are directly deduced by PHP from the
running context established by the hosting web server, itself
following there the de-facto CGI specifications.

Non-programmer doesn't mean bad googlers, therefore, I think that
keeping the original name is a must to efficiently target
researches...
...and clarify discussions between non-programmers and others ;)

References:
http://httpd.apache.org/docs/1.3/howto/cgi.html#environmentvariables
http://cgi-spec.golux.com/ ...and more precisely
http://cgi-spec.golux.com/draft-coar-cgi-v11-03-clean.html

Regards,
Dom



More information about the pmwiki-users mailing list