Hi guys,

My system environment is
PHP 4.3.8

Web server Apache/2.0.52 (Win32) mod_ssl/2.0.52 OpenSSL/0.9.7e

I was trying to enable curl extension by uncomment php_curl.dll in php.ini. But right after I uncommented php_curl.dll, I couldn’t load any PHP pages. It looked it is loading from the status bar. But eventually I got nothing loaded.

I also happened to find out that this happens when I uncomment any extension (dlls).

There was another person who had the same issue.

http://bugs.php.net/bug.php?id=30521&edit=1

But in the reply, it says this problem does not imply a bug in PHP itself.

Has anyone here confronted this before? This is driving me crazy. Please help!

    Have a look at the Apache error log. See if it actually loaded the extension or not. Also, try adding the path to php to your PATH environment variable (My Computer --> Properties --> Advanced --> Environment Variables).

    Usually when you get a blank page, PHP has encountered an error and you don't have the error level set high enough to show it. Make sure E_ALL is the level used for displaying errors, and that display_errors is on.

      Thanks! bpat1434

      Let me give it a go

        bpat1434, thanks again for your reply!

        I've tried everything you suggested.

        1. There are no indications about the curl extension in Apache error.log
        2. After I added path to php to my path environment and uncommented E_ALL in php.ini. I tried again. Nothing changed. No error displayed. It was just keep loading and loading.
        3. As soon as I comment that php_curl.dll out, everything just returns to normal

        That is so bizarre. I think I might have to reinstall php.

          Might. Try using the zip package instead of the msi installer 😉

            OTTOMH:

            1. Does such a *.dll exist?
            2. extension_dir directive in php.ini?
            3. does phpinfo() give a clue?
            4. CLI php create an error when curl.dll is uncommented?

            Good luck...

              dalecosp wrote:

              OTTOMH:

              Thank you for your help

              1. Does such a *.dll exist?

                Yes, its in ../php/ext/

              2. extension_dir directive in php.ini?
                It is set to ../php/ext/

              3. does phpinfo() give a clue?
                I got curl enabled in my TEST server, which has almost the same environment as the PRODUCTION server that I have trouble with.
                In phpinfo() of this working TEST server, it has
                curl
                cURL support enabled

                cURL Information libcurl/7.16.0 OpenSSL/0.9.7e zlib/1.2.3

                Since I couldn't enable curl in the PRODUCTION server, phpinfo has nothing about CURL.

              1. CLI php create an error when curl.dll is uncommented?
                No error is generated. It just keeps loading when you try to access any php file.
                What is "CLI" BTW?

              Thanks again for your help!

                CLI is the command line interface. Sometimes I can catch a clue there I might have missed in a logfile someplace.

                As for phpinfo(), I was referring to whether or not anything showed up that might give a clue; for example, other than CURL, are all other bits of phpinfo the same on both servers?

                Sorry I'm not more help on this. I've got php on one windows box, but about six BSDnixen...and the only ones with webservers on them are the BSDs....

                  dalecosp wrote:

                  CLI is the command line interface. Sometimes I can catch a clue there I might have missed in a logfile someplace.

                  As for phpinfo(), I was referring to whether or not anything showed up that might give a clue; for example, other than CURL, are all other bits of phpinfo the same on both servers?

                  Sorry I'm not more help on this. I've got php on one windows box, but about six BSDnixen...and the only ones with webservers on them are the BSDs....

                  Thanks anyway for that! I will reinstalll php.

                    Write a Reply...