I'm running XAMP on Windows XP Pro. I've enabled curl in PHP.INI en restarted my machine and Apache.


Still I get the following error in my php script:

Call to undefined function curl_init()

File php_curl.dll is in C:\Program Files\xampp\php\ext and I have this line

extension_dir = "C:\Program Files\xampp\php\ext\"

closed as off-topic by masegaloeh, Jenny D, Hyppy, ceejayoz, Scott Pack Apr 23 '15 at 2:22

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "Questions on Server Fault must be about managing information technology systems in a business environment. Home and end-user computing questions may be asked on Super User, and questions about development, testing and development tools may be asked on Stack Overflow." – Jenny D, Hyppy, ceejayoz, Scott Pack
If this question can be reworded to fit the rules in the help center, please edit the question.


The libeay32.dll and ssleay.dll files in your PHP directory must be accessible from somewhere in your PATH variable for cURL to work with Apache. The easiest way to achieve this is to add your PHP directory to your PATH environment variable.

Not the answer you're looking for? Browse other questions tagged or ask your own question.