Hello,
I got a html-File with some urls. I want my code to extract all urls to the array $link. Till here, it works fine. Then I want to load the first url of my array in my "unten" frame, wait x seconds, load the second url in the same frame called "unten", wait x seconds, and so on, till all urls were loaded.
It would be better for me, if every url would be opened in a new window, like a <a href>-Tag with the target="_blank". Is this possible? Are there some good functions for my problem? I searched a lot, but I wasn't successful.
Here is the code till now. The extraction works fine, the array is full with all the urls. Now I need the solution for the second problem, the new window or the dynamic frame.
<html><head><title>load my links</title>
<?php
$url = "emails.htm";
$file = file($url);
$cnt = 0;
for ($x=0; $x<count($file); $x++) {
if (strstr($file[$x], "http://www.")) {
$link[$cnt] = strrev(strstr(strrev($file[$x]), "\""));
$cnt++;
}
}
foreach ($link as $value) {
};
?>
</head>
<body>
<frameset rows="50,100%">
<frame src="" name="main">
<frame src="" name="unten">
</frameset>
</body>
</html>