Solved

How to enable curl in php?

Posted on 2009-03-29
8
1,029 Views
Last Modified: 2013-12-13
how to enable the curl in php? i am unable to do it?
0
Comment
Question by:designersx
  • 5
  • 2
8 Comments
 
LVL 36

Expert Comment

by:Loganathan Natarajan
ID: 24016466
in your php.ini file,  uncommented line

extension=php_curl.dll



0
 
LVL 36

Accepted Solution

by:
Loganathan Natarajan earned 50 total points
ID: 24016470
just remove ;


0
 
LVL 36

Expert Comment

by:Loganathan Natarajan
ID: 24016478
0
Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

 

Author Comment

by:designersx
ID: 24016484
hello logudotcom:

no i am using wamp server.
0
 
LVL 36

Expert Comment

by:Loganathan Natarajan
ID: 24016489
0
 
LVL 36

Expert Comment

by:Loganathan Natarajan
ID: 24016493
to enable curl left click on the wamp tray icon -> php settings -> php extensions -> php_curl
0
 

Author Comment

by:designersx
ID: 24016505
actually i has a code in which geocoder tells the latitude and longitude by address. in that program, i was getting the error curl_init() not defined, that means my curl are not defined and in php.ini file

;extension=php_bz2.dll
;extension=php_curl.dll

it is written like this, it is already uncommented. so now tell what to do?

how do i come to know that my curl have been enabled?
0
 
LVL 14

Expert Comment

by:shobinsun
ID: 24016521
Hello,

First of all you should install curl.

For this  yum (or apt-get) install php-curl curl-devel

Regards.
0

Featured Post

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Developers of all skill levels should learn to use current best practices when developing websites. However many developers, new and old, fall into the trap of using deprecated features because this is what so many tutorials and books tell them to u…
3 proven steps to speed up Magento powered sites. The article focus is on optimizing time to first byte (TTFB), full page caching and configuring server for optimal performance.
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
The viewer will learn how to count occurrences of each item in an array.

820 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question