Gho§t Posted August 19, 2007 Share Posted August 19, 2007 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); ?> Quote Link to comment https://forums.phpfreaks.com/topic/65707-curl-question/ Share on other sites More sharing options...
phpknight Posted August 19, 2007 Share Posted August 19, 2007 Just try it and see if it works, lol. Quote Link to comment https://forums.phpfreaks.com/topic/65707-curl-question/#findComment-328189 Share on other sites More sharing options...
shag Posted August 20, 2007 Share Posted August 20, 2007 Yes you can do multiple, it should work fine. Quote Link to comment https://forums.phpfreaks.com/topic/65707-curl-question/#findComment-328405 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.