Jump to content

cURL question...


Gho§t

Recommended Posts

Can i do multiple curl_exec()'s with one curl_init() handler?  Like...

 

<?php
$ch = curl_init();

curl_setopt($ch, CURLOPT_URL, 'http://google.com');
curl_exec();

//Will this code work or do I have to make a new handler?
curl_setopt($ch, CURLOPT_URL, 'http://yahoo.com');
curl_exec();

curl_close($ch);
?>

Link to comment
https://forums.phpfreaks.com/topic/65707-curl-question/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.