Jump to content

Function not found


waddledoo

Recommended Posts

Fatal error: Call to undefined function curl_init() in C:\(etc etc...)

 

Now I know the usual causes for a problem like this, but they are not solving anything.

 

Yes, extension=php_curl.dll is uncommented in the php.ini file.

Yes, phpinfo() displays the php.ini file I have been editing as the Loaded Configuration File.

Yes, extension_dir is set correctly in my php.ini file (other extensions work).

Yes, php_curl.dll exists in my ext/ folder.

No, phpinfo() does not display anything about cURL, anywhere :(

 

Where else can I look to possibly fix this?

Link to comment
https://forums.phpfreaks.com/topic/252643-function-not-found/
Share on other sites

I have restarted the server several times, and my computer aswell.

 

Under phpinfo():

Configuration File (php.ini) Path C:\Windows

Loaded Configuration File C:\PHP\php.ini

 

So it would appear yes, this is the config file; unless there it is displayed somewhere else, but disabling other extensions such as mysqli in the file I am using effects the server. Is it possible the .dll file for curl is broken?

 

EDIT:

After some further research into the cURL dll file, I found out it uses two other dll files (libeay32 and sslea32), and it was suggested that they be copied into the C:\Windows folder.

 

After doing this, all cURL functions are running, and cURL is appearing in my phpinfo()

Link to comment
https://forums.phpfreaks.com/topic/252643-function-not-found/#findComment-1295200
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.