Infomani

Hi, this is for U only.Do well, Feel Free…

  • No of Hits

    • 6,971 hits
  • Enter your email address to subscribe to this blog and receive notifications of new posts by email.

    Join 8 other followers

  • Time is Now

    June 2012
    M T W T F S S
    « Feb   Aug »
     123
    45678910
    11121314151617
    18192021222324
    252627282930  
  • Zip

  • Advertisements

How to enable cURL in PHP

Posted by Manikandan.MS on June 2, 2012


Fatal error: Call to undefined function curl_init().

In wamp or xampp you may get these kind of error while running PHP, Mysql Program. If you want to avoid you will enable curl_init() function in php.ini file.

How to enable curl_init() function or libraries:

Open the following files.

1. C:\wamp\bin\apache\Apache2.2.21\bin\php.ini
2. C:\wamp\bin\php\php5.3.10\php.ini

In the sub folder you may find 2 php.ini file. open that files and find the below lines

  ;extension=php_bz2.dll
  ;extension=php_curl.dll
  ;extension=php_dba.dll
     
these lines change to
        
  ;extension=php_bz2.dll
  extension=php_curl.dll
  ;extension=php_dba.dll

 you should remove the semicolon (;) in front of the php_curl.dll function as like above showed and save the file

Incase in xampp you find php.ini file and do the same changes in it.

Note:  After all the changes you must RESTART your wamp or xampp server.
   

Advertisements

3 Responses to “How to enable cURL in PHP”

  1. agree. lista de emails lista de emails lista de emails lista de emails lista de emails

  2. Good things.

    […]How to enable cURL in PHP « Infomani[…]…

  3. Palani said

    Its very nice and usefull
    thanks

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

 
Pradeep

Why We live

TechView Mani

A blog of New Technologies

Infomani

Hi, this is for U only.Do well, Feel Free...

%d bloggers like this: