On Mon, Jun 07, 2010 at 04:03:03PM +0100, Christopher Smith wrote: > > On 7 Jun 2010, at 15:52, Chris G wrote: > > > I've been trying to run some bits of embedded PHP in a wiki page and > > after a fair amount of tearing of hair I've discovered that all > > variables get stripped out of the code. > > > > So for example I put:- > > > > <php> $x = "a string" </php> > > > > ... and what gets parsed is:- > > > > = "a string" > > > > ... which not surprisingly doesn't work very well. So, what's > > stripping out the variables? > > > > Are you running any plugins? > Perhaps a variable substitution one per your other email. Disable it and try > again. > Absolutely right, the macros plugin was stealing all the variables, I was only trying to see if it was useful so disabling it wasn't a problem. Thanks. -- Chris Green -- DokuWiki mailing list - more info at http://www.dokuwiki.org/mailinglist