Oct 25, 2010. My conf: Ubuntu 11.10, already installed mysql,php5 and apache2, before installing php5-curl in terminal I did: edit sources list like: sudo -H gedit /etc/apt/sources.list. You can check your configuration in Next command: apt-get install aptitude. Next command: aptitude install. Jul 11, 2014. Hello friends, I need to enable Curl in php/apche, so first i try with this, edit the file. CURL is not enabled by default in WAMP. Every php programmer have to use CURL to make remote connection. The steps are as follows: 1) Close WAMP (if running). I see the issue. CURL is an external library/application. To get CURL accessible from PHP, you need to compile PHP with the library. From the PHP Manual. To use PHP's CURL support you must also compile PHP --with-curl[=DIR] where DIR is the location of the directory containing the lib and include directories. In the 'include' directory there should be a folder named 'curl' which should contain the easy.h and curl.h files. There should be a file named libcurl.a located in the 'lib' directory. Beginning with PHP 4.3.0 you can configure PHP to use CURL for URL streams --with-curlwrappers. Once you've recompiled PHP to include the CURL library, phpinfo(); should show the module and its state/version. Compiling PHP will not affect other applications (normally) unless you forget to include a module (--with-xxxx) which is required for comminication. From what I've seen of PHP on *ix, the phpinfo(); gives your current./configure line. Use that and then add the CURL options to add CURL to PHP. Hi Richard Quadling, Thanks for the help. Can you please tell me what are the steps to recomplie php. I do not need to upgrade php version. Because you want to add a new library to PHP, you need to compile PHP. Unfortunately, I can't help you there as I am on windows. Though, I believe it is something like./configure.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
March 2018
Categories |