Hello!
I'm looking for the best way to allow members of a forum to click a link that will allow them to open multiple urls in new windows or tabbed windows (new windows or tabbed isn't the issue).
The url is held in an individual column for each forum topic/thread (not necessarily a url for each and every topic/thread).
So I guess if a member has number of threads per page to be 30, the first question is whether the best way to allow the member to open the urls for all threads on that page is to store them in an array and then use the array and open all the url's if the special link is clicked? Or is there a better way?
Second question is the best option to open the url's?
fopen? file? window.open?
$handle = fopen("http://www.example.com/", "r");
<?php
$myfile = file('http://www.example.com');
foreach ( $myfile as $vals){
print "$vals";
}
?>
window.open(http://www.example.com/);
Any nice example code?!
🙂
Thanks in advance for any help!