user1386522
user1386522

Reputation:

I have configured curl but it does not work

I am using windows server and have ran the following code to find my php.ini.

    <?php

        infophp();
    ?>

Then uncommented the extension=php_curl.dll and set the extension path on my php.ini. At last downloaded and installed curl and restarted my server but there is still no information about the curl in my info.php

I have php_curl.dll in my ext folder (extension folder), libeay32.dll and ssleay32.dll are also in root of my php folder.

Upvotes: 2

Views: 132

Answers (1)

Ranty
Ranty

Reputation: 3362

I had this problem a few times and most of them web server was picking up wrong php.ini.

Make sure the one you are editing is being used. Try disabling php in it totally and running your script to find out. Just change

engine = On

to

engine = Off

and try it out. If you still see php info page, that means web server uses wrong php.ini.

If you use Apache, you can specify in httpd.conf which php.ini to use with

PHPIniDir "C:/path/to/your/php/dir"

Upvotes: 0

Related Questions