Feb 08

Howto solve problem Fatal error: Call to undefined function curl_init()

When you set a development environment there are default configurations that don’t meet yours requirements: one of these can be possibility to make use of php curl extension. So you can encounter the error :

Fatal error: Call to undefined function curl_init()

Don’t worry, the solution is really simple! Just :

  • Find in php.ini file ( the php configuration file ) the string “;extension=php_curl.dll”   and uncomment : just delete “;”. Do you have problem find php configuration file? Withi php_info() function you can find out which configuration file you are using.
  • Restart web server
  • Test if it’s all right


Skip to comment form

  1. adnan

    i tryed to open www/apachi server i have , opened php.ini file and chaneged and also deleted php.ini file
    but not sucess no anyone changed in the error , error is same Fatal error: Call to undefined function curl_init()
    its question to solve itsn’t easy what u r saying that is joke not for solve , if u have a reality solution of this question so tel me i will try this is php.ini changed is not working

    1. Gabriele

      if you permanently have this error you have to correctly configure your apache environment. First, as post suggests, find out witch php.ini file you are using mean by the php function php_info() and then fix the problem.

  2. Call to undefined function curl_init

    you will need to install curl for php

    1. Gabriele

      Generally curl is installed in apache environment

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>