enabling PHP/cURL on windows. Last resort
Posted: Sat Feb 20, 2010 7:39 am
Hi there,
When I try to run a script that uses CURL (I am running Windows 7), I get the following error message:
I have googled around to fix this problem and so have already tried the following without success:
1. Uncommenting the extension=php_curl.dll line in php.ini. Note: On one of the posts I read a guy saying that people might be making the mistake of changing the php.ini file at php/php.ini rather than at Apache/bin/php.ini. However, there is only one php.ini file on my computer and it at php/php.ini
2. I have checked that extension_dir is set to: "C:\xampplite\php\ext"
3. I have tried with register_globals set to On, but I would rather keep that set to Off anyway if poss.
4. I have checked that the php_curl.dll file exists in the php/ext directory and it does.
5. I have made copies of php_curl.dll, libeay32.dll and ssleay.dll and moved them to my Windows/system32 directory
6. I have restarted the server(localhost) several times and restarted my computer to see if that would make a difference, but it hasn't.
I just wonder if someone has any ideas?
Many thanks in advance
Joe
When I try to run a script that uses CURL (I am running Windows 7), I get the following error message:
Code: Select all
Fatal error: Call to undefined function: curl_init() in C:\xampplite\htdocs\LIB_http.php on line 2491. Uncommenting the extension=php_curl.dll line in php.ini. Note: On one of the posts I read a guy saying that people might be making the mistake of changing the php.ini file at php/php.ini rather than at Apache/bin/php.ini. However, there is only one php.ini file on my computer and it at php/php.ini
2. I have checked that extension_dir is set to: "C:\xampplite\php\ext"
3. I have tried with register_globals set to On, but I would rather keep that set to Off anyway if poss.
4. I have checked that the php_curl.dll file exists in the php/ext directory and it does.
5. I have made copies of php_curl.dll, libeay32.dll and ssleay.dll and moved them to my Windows/system32 directory
6. I have restarted the server(localhost) several times and restarted my computer to see if that would make a difference, but it hasn't.
I just wonder if someone has any ideas?
Many thanks in advance
Joe