Sponsored Content
Top Forums UNIX for Advanced & Expert Users Upgrade PHP (LAMP) to support cURL. Anyone? Post 60275 by Neo on Thursday 13th of January 2005 10:46:44 PM
Old 01-13-2005
Upgrade PHP (LAMP) to support cURL. Anyone?

Has anyone who is running linux-apache-mysql-php (LAMP) ever upgraded their PHP configuration (in a working environment) to support cURL?

If you have, please post the easiest way to do it without adversely effecting the other parts of the LAMP configuration.

Thanks!
 

8 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

configure php with mcrypt support

output of uname -a: Linux XXXXX 2.6.9-5.ELsmp #1 SMP Wed Jan 5 19:30:39 EST 2005 i686 i686 i386 GNU/Linux i'm trying to configure php with mcrypt support. output is below: ./configure --with-apxs2=/usr/local/apache/bin/apxs \ --with-mysql=/usr/lib/mysql3/mysql/mysql_config \... (1 Reply)
Discussion started by: pupp
1 Replies

2. Hardware

Upgrade Sun Fire v65x to support USB External HD?

Hi, Does anyone know if it's possible to upgrade a Sun Fire v65x to support USB external hard drive(s)? My take on this is the USB ports were designed to support keyboard and mouse funtionality. BIOS Version/Date is: Intel Corporation SWV25.86B.1191.P08.0310291543, 10/29/2003. Does anyone... (3 Replies)
Discussion started by: mattdon
3 Replies

3. Solaris

Compile php with curl on solaris 10 question

I have curl compiled into /usr/local. I needed to install another version into /usr/local/curl-7.19.5 and compile php using that directory. I believe I had done that but an ldd run against php shows it is using /usr/local/lib. I have my configure script below showing how it was built and php -i... (1 Reply)
Discussion started by: csgonan
1 Replies

4. Shell Programming and Scripting

Proxy with curl/wget support

I need a proxy that would enable me to use cli curl/wget with another ip address. How do I find a paid proxy server that supports curl/wget? (1 Reply)
Discussion started by: locoroco
1 Replies

5. Web Development

Building LAMP server from scratch (build a server with compiled LAMP from CentOS mini)

Hello everyone, I would like to setup a lamp server from a minimal distro and to compile PHP, MySQL and Apache myself. I have chosen CentOS minimal for the OS and I am trying to build the stack by hand... But well, it appears I need some help! First: I am looking for good and recent... (3 Replies)
Discussion started by: freddie50
3 Replies

6. Solaris

Solaris,PHP,Expect support

Hello All, I installed php5 from OpenCSW but i believe it does not support the expect module. I tried to run a php script to call expect to do a telnet to a device but i got this error PHP Warning: fopen(): Unable to find the wrapper "expect" - did you forget to enable it when you... (6 Replies)
Discussion started by: kaf3773
6 Replies

7. Red Hat

Error while starting Apache after compiling PHP and Curl

Hello, I am facing an issue while starting the apache server after compiling php and curl. Below are the versions i am using. php-5.2.17 httpd-2.2.17 curl-7.16.0 CentOS5.5x64 Compiling above packages without curl working very fine but when trying to compile php with curl below error is... (1 Reply)
Discussion started by: sunnysthakur
1 Replies

8. Shell Programming and Scripting

How to get contents of php page using curl in C language?

Hi, I want to write code in C using curl library to get output of php page , the output is in xml. Thanks (2 Replies)
Discussion started by: nitks.abhinav
2 Replies
CURL_MULTI_CLOSE(3)							 1						       CURL_MULTI_CLOSE(3)

curl_multi_close - Close a set of cURL handles

SYNOPSIS
void curl_multi_close (resource $mh) DESCRIPTION
Closes a set of cURL handles. PARAMETERS
o $mh -A cURL multi handle returned by curl_multi_init(3). RETURN VALUES
No value is returned. EXAMPLES
Example #1 curl_multi_close(3) example This example will create two cURL handles, add them to a multi handle, and process them asynchronously. <?php // create both cURL resources $ch1 = curl_init(); $ch2 = curl_init(); // set URL and other appropriate options curl_setopt($ch1, CURLOPT_URL, "http://www.example.com/"); curl_setopt($ch1, CURLOPT_HEADER, 0); curl_setopt($ch2, CURLOPT_URL, "http://www.php.net/"); curl_setopt($ch2, CURLOPT_HEADER, 0); //create the multiple cURL handle $mh = curl_multi_init(); //add the two handles curl_multi_add_handle($mh,$ch1); curl_multi_add_handle($mh,$ch2); $running=null; //execute the handles do { curl_multi_exec($mh,$running); } while ($running > 0); //close the handles curl_multi_remove_handle($mh, $ch1); curl_multi_remove_handle($mh, $ch2); curl_multi_close($mh); ?> SEE ALSO
curl_multi_init(3), curl_close(3). PHP Documentation Group CURL_MULTI_CLOSE(3)
All times are GMT -4. The time now is 09:57 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy