Forum Moderators: coopster
1. Is the path to php.ini hardcoded into the binary for your OS or can it be specified?
I was gleefully altering php.ini in the installation directory and I thought I was 'the man' because I didn't even have one bad directive and Apache would restart with no wranings or errors every time after I changed the file. But like Blueblockers (and the 80's in general), I soon realized something was terribly wrong...phpinfo() was showing all the default settings and none of my brilliant *cough* changes!
Seems that there was a php.ini in C:/Windows/ and it was using that one instead! Doh! That location seems to be hardcoded into the php binary and Apache(2) module. Is there any way to tell it to use the php.ini from the install directory? (Not a huge deal, but I feel a little better have things like that in more obscure places than the windows root directory ;p ) I'm running "PHP/4.3.4-dev", BTW.
2. Once I actually got it using my php.ini file I get a warning when Apache tries to load the PHP module on startup:
PHP Warning: Unknown(): Unable to load dynamic library 'C:/path/to/php/extensions/php_xslt.dll' - The specified module could not be found.
in Unknown on line 0
But the thing is the file is there just like all the other PHP modules (which is successfully loads from the same place). Do I need an extra support library to use the xslt extension or something? I really want to be able to use this PHP module because Opera can't do native XSL transforms yet. Anybody successfully using this module or know how I can get it working?
Jordan
I'm downloading Sablotron right now and reading about how to use it with PHP on their page, so I think I have the answer to that question. :)
Jordan
[edit:] Duh...sablot.dll was right there in the dlls folder...will the wonders ever cease [/edit]
It's in the fine print in the installation manual [us3.php.net].
You'll find this there as well:
It is possible to do minor customization to the build process by editing the main/config.win32.h file. For example you can change the default location of php.ini, the builtin extensions, and the default location for your extensions.