Jump to content

cUrl loop - I think


mbk

Recommended Posts

Hi all,

 

I need to create a curl loop that increments and uses the increment to access pages.

 

URL of www.blah.com/index.asp?p=1

 

The number changes for each post on the site and some posts dont exist, ie p=4 doesnt exist it just brings a message up saying Post you are looking for doesnt exist.

 

So what I need to do is have a script that takes the base URL upto = and then increment the counter each time but also if the page comes back post doesnt exist then skip this...

 

Can anyone help pls?

 

thanks

Link to comment
https://forums.phpfreaks.com/topic/182273-curl-loop-i-think/
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.