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 = ''; $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.



Sponsor our Newsletter | Privacy Policy | Terms of Service