Custom settings with PHP

Maxim Dounin mdounin at
Tue Jul 12 20:36:13 MSD 2011


On Tue, Jul 12, 2011 at 10:40:41AM -0400, locojohn wrote:

> > Hmm, never tried that, using a variable. Don't
> > know if the $ needs to
> > be escaped.
> > 
> > You'll have to try it. 
> Of course I tried both:
> fastcgi_param PHP_VALUE "include_path=${include_path}:/my/other/path";
> and
> fastcgi_param PHP_VALUE "include_path=\${include_path}:/my/other/path";
> and neither works, hence I wrote here.

As already replied in russian list, currently (going to be fixed) 
this may be done only with a hack like

    geo $x {
        default "${include_path}:/my/other/include/path";

    fastcgi_param PHP_VALUE $x;

which relies on the fact that geo module doesn't support 

No idea how php will handle this though, probably Antonio is right 
and this won't work anyway.

Maxim Dounin

More information about the nginx mailing list