MrPanjabi Posted August 13, 2008 Share Posted August 13, 2008 Hello, i'll be simple as i can... link1.php has link link2.php in it link2.php has link link3.php in it link3.php has link link4.php in it and so on i have the function to extract links from every page but... i want to create a function that prints all links and stop when there is no more links to extract something like that $nextLink = "link1.php"; extrUrl($nextLink); // when finish extracting $nextLink, to extract the next link found in $nextLink should i use array ? please give me an idea Thank you! Quote Link to comment Share on other sites More sharing options...
!jazz Posted August 13, 2008 Share Posted August 13, 2008 Hello, i'll be simple as i can... link1.php has link link2.php in it link2.php has link link3.php in it link3.php has link link4.php in it and so on i have the function to extract links from every page but... i want to create a function that prints all links and stop when there is no more links to extract something like that $nextLink = "link1.php"; extrUrl($nextLink); // when finish extracting $nextLink, to extract the next link found in $nextLink should i use array ? please give me an idea Thank you! What exactly do you want? A pagination tool? Sorry I just don't get it :-) JaZz Quote Link to comment Share on other sites More sharing options...
MrPanjabi Posted August 13, 2008 Author Share Posted August 13, 2008 $ok = array(); array_push($ok, "value1"); foreach($ok as $value) { print $value; array_push($ok, "value2"); } // it won't print "value2" how can i solve this ? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.