]+href=([\’”])(?
preg_match_all(‘/]+src=([\’”])(?
foreach ($matches[‘href’] as $link) {
if (strpos($link, ‘http’) !== 0) {
$link = “https://store.etnoyersrvworld.com” . $link;
}
$results[] = array(‘url’ => $link, ‘src’ => ”);
get_links($link, $depth – 1, $results);
}
foreach ($matches2[‘src’] as $src) {
if (strpos($src, ‘http’) !== 0) {
$src = “https://store.etnoyersrvworld.com” . $src;
}
$results[] = array(‘url’ => ”, ‘src’ => $src);
}
}
$results = array();
get_links(‘https://store.etnoyersrvworld.com’, 6, $results);
echo ”
“;
echo ”
“;
foreach ($results as $row) {
echo ”
“;
}
echo ”
URL | IMG SRC |
---|---|
“.$row[‘url’].” | “.$row[‘src’].” |
“;