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
Share on other sites

  • 1 year later...

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
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.