None of my PHP extensions are loading. I've followed the instructions on php.net to the letter. I'm developing PHP on my WinXP workstation for the time being using PHP 4.4.2 and Apache 2.0.58. It should just be as easy as uncommenting a line in my php.ini, ie: change ;extension=php_snmp.dll to extension=php_snmp.dll and then restarting Apache. I've set my extension_dir value correctly even. Nothing works. When I call phpinfo() nothing but the default extensions are loaded. I've uncommented EVERY extension PHP4 has in the php.ini file by default and still nothing.

What am I doing wrong?

    I know in quite a lot of UNIXy type setups you have more than one php.ini file (one for Apache and one for the cli). Are you sure you edited the correct php.ini file? Try putting some garbage in the php.ini and make sure that it causes an error.

      There is only one php.ini file on the system. However, when I put garbage in the file, Apache still restarts fine...odd. I changed a few things under the MySQL header like the default MySQL port. The default port is undefined (blank). I set it to something, restart Apache, and the value still does not reflect in phpinfo...what gives? I've installed PHP as an Apache module. It would seem it is using the default PHP settings and not my php.ini file.

        Arrrgh! The php.ini file wasn't even being used. In the httpd.conf file, I was using c:\PHP as my PHPIniDir. No wonder nothign worked.

        Thanks helping me work it out.

          Cool. (Don't forget to mark the thread resolved ;-)

            Write a Reply...