i need to visit 50+ page
example
$page=1
$page=51
$page=101
$page=151
my php function visit $page=1 then $page=2 – can any help me?
function start(){
$page=1;
do{
$ss=getpagecontent('http://www.domain.com/?pagenumber='.$page);
for($i2=0, $i2Count=count($ss);$i2<$i2Count;$i2++){
$jk=getDk($ss[$i2]);
if(!saveDD($jk, $msg)){
}
}
$page++;
}while(!empty($ss));
}
All you need to do is increment
$pageby 50 each iteration. So you’d change this:To: