RE: [PHP4BETA] Local php.ini files on Win NT...

From: Date: Thu, 16 Mar 2000 23:04:49 +0000
Subject: RE: [PHP4BETA] Local php.ini files on Win NT...
References: 1  Groups: php.version4 
Request: Send a blank email to php-version4+get-12289@lists.php.net to get a copy of this message
Zeev mentioned a way to do it a while back. > You can do it through the registry. > If you create, under HKLM\\Software, a new branch named PHP, and > under it, > a new branch named 'Per Directory Values', you can simply add directory > names there as you see fit. Then, you can populate the branch > with string > values, with the same semantics as the php.ini (no scripting > skills though, > you can't use E_ERROR|E_NOTICE or stuff like that). > > E.g., > > HKML\Software\PHP\Per Directory Values\InetPub\wwwroot\PHPFiles\MyApp > > Containing a string key: > > safe_mode => 1 > > Would turn safe mode for C:\InetPub\wwwroot\PHPFiles\MyApp. > > As you can probably see, you can't specify the drive letter; The > registry > code currently only cares about the path (so it would apply to > D:\InetPub\wwwroot\PHPFiles\MyApp as well). At least, that's what I can > tell from looking at the code - I definitely don't remember > what's going on > in there, I wrote it well over half a year ago (I think). > > Zeev > -----Original Message----- > From: Simon Sadler [mailto:simon.sadler@zoom.co.uk] > Sent: Thursday, March 16, 2000 11:43 PM > To: Frank M. Kromann > Cc: php4beta@lists.php.net > Subject: Re: [PHP4BETA] Local php.ini files on Win NT... > > > Thanks that may come in handy but not really what I wanted. > > I'm looking for a way of overriding php settings on a per > directory basis. I > want the htaccess behaviour but without using htaccess files. > > Is it possible? > > Regards, > > Simon.

« previous php.version4 (#12289) next »