Jump to content

Looping through cURL ?


livewirerules

Recommended Posts

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

  • 1 year later...

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.