Navigation function and re run script?

im trying to write a simple script. Pretty much to scrape a page content. maybe you can help me. This is what i got so far

<?php $url = 'http://www.solecollector.com/forums/memberlist.php'; $output = file_get_contents($url); echo $output; ?>

which works good. Now how could i have it navigate to the next page and run the script again, and do so untill it reaches the last page.

Any help its appreciated or point me on the right direction.

Try doing it with cURL.
[php]<?php

$curl_handle=curl_init();
curl_setopt($curl_handle,CURLOPT_URL,‘http://www.solecollector.com/forums/memberlist.php’);
curl_setopt($curl_handle,CURLOPT_CONNECTTIMEOUT,2);
curl_exec($curl_handle);
curl_close($curl_handle);

?>[/php]

Sponsor our Newsletter | Privacy Policy | Terms of Service