livewirerules Posted March 19, 2010 Share Posted March 19, 2010 Im tring to pass 2 variables to a function that uses Curl through a loop. testfunction($id,$page) curl_setopt($ch, CURLOPT_URL, "testserver.com/index.php?id=$id&page=$page"); The problem is that the result works only the first time. When i pass $id=5 and $page 5 it works fine. But when its incremented by the loop where $id=10 and $page =6. Nothing seems to be displayed. Can anyone please tell me when i am doing wrong?? Link to comment https://forums.phpfreaks.com/topic/195783-looping-through-curl/ Share on other sites More sharing options...
livewirerules Posted March 19, 2010 Author Share Posted March 19, 2010 Figured it out Link to comment https://forums.phpfreaks.com/topic/195783-looping-through-curl/#findComment-1028505 Share on other sites More sharing options...
Yodastoe Posted May 26, 2011 Share Posted May 26, 2011 Having a similiar problem.. Just curious how you solved it.. Link to comment https://forums.phpfreaks.com/topic/195783-looping-through-curl/#findComment-1220809 Share on other sites More sharing options...
Maq Posted May 26, 2011 Share Posted May 26, 2011 Having a similiar problem.. Just curious how you solved it.. You'll probably have better luck starting a new thread with your problem. The OP hasn't been active since August 27, 2010, 06:14:09 AM. Link to comment https://forums.phpfreaks.com/topic/195783-looping-through-curl/#findComment-1220873 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.