[dokuwiki] Re: Embedded PHP loses variables

  • From: Christopher Smith <chris@xxxxxxxxxxxxx>
  • To: dokuwiki@xxxxxxxxxxxxx
  • Date: Mon, 7 Jun 2010 16:03:03 +0100

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?
> 
> -- 
> Chris Green
> 
> -- 
> DokuWiki mailing list - more info at
> http://www.dokuwiki.org/mailinglist

Are you running any plugins?
Perhaps a variable substitution one per your other email.  Disable it and try 
again.

- Chris

Other related posts: