Hello Tim I am using PHP 4.2.2 on Win98 for eval and I have encountered problems with extension_dir too. Basically it comes to that:
PHP is not yet consistent in the usage and basing of relative pathnames in the different contexts (extensions, session_save, ...). In addition, absolute pathnames don't always work. There are differences in that between 4.2.2 and 4.3. I am interested in that because I want to have an "tentative update" strategy with parallel installations of more than one version of PHP on my machine. At its best i want to change a folder name and copy php.ini to switch from one version to another. So I refuse to put anything in %WINDIR% or %WINSYSDIR%. That leaves two locations necessary for php.ini: - the folder with the current PHP inst (for CLI and CGI operation) - the folder with (in my case) the Apache (more general: Webserver) inst (for SAPI mode operation) This is because PHP.INI is looked for (among other loc) in the folder of the primary executable. This is PHP in CGI and CLI modes and the Webserver in SAPI mode. "C:\php4" is a special case in that it is hardcoded in PHP as the perferred location for the PHP inst. <rant> I find that imposing and interfering </rant>. Now at least some relative pathnames in PHP.INI are based on the location of PHP.INI itself, especially "extension_dir". So, to have all things at hand I install: <drive>:\<Program Files>\WebDev\ and below that I have the folders - "PHP-x.y.z>" (possibly more than one) with subfolder "extensions" - "Apache" with a copy of the current PHP.INI - "PHP" (the current PHP, copied or renamed out of PHP-x.y.z) My PHP.INI states relative pathnames in the form "..\PHP\folder for any purpose". This way it works for 4.2.2 and 4.3 SAPI, CGI and CLI. All this is strictly for dev purpose and possibly invalid under security restrictions ( namely ..\<any folder> as a folder spec in safe mode). Sven > -----Ursprüngliche Nachricht----- > Von: Maxim Maletsky [SMTP:[EMAIL PROTECTED]] > Gesendet am: Donnerstag, 7. November 2002 19:08 > An: Brett Curtiss > Cc: [EMAIL PROTECTED] > Betreff: Re: [PHP-WIN] Re: enabling extensions > > > No, it is not necessary (as long as I know, Linux's slash will work) > > > -- > Maxim Maletsky > [EMAIL PROTECTED] > > > > "Brett Curtiss" <[EMAIL PROTECTED]> wrote... : > > > You need to have the trailing \ ex: C:\WINDOWS\SYSTEM32\ > > > > Hope that helps. > > > > > > "Tim Blackwell" <[EMAIL PROTECTED]> wrote in message > > news:20021106190556.22437.qmail@;pb1.pair.com... > > > I'm trying to enable the ldap extension on my server. > > > > > > I've put the php_ldap.dll in the windows/system32 directory > > > I've set the extension_dir = C:\WINDOWS\SYSTEM32 in the php.ini file. By > > > the way i've tried extension_dir = C:/WINDOWS/SYSTEM32 > > > I've taken the ; from the extension=php_ldap.dll line in the php.ini file. > > > > > > What else needs to be done to enable the extensions? > > > > > > thanks, > > > > > > t > > > > > > > > > > > > > > -- > > PHP Windows Mailing List (http://www.php.net/) > > To unsubscribe, visit: http://www.php.net/unsub.php > > > > > -- > PHP Windows Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php