I need a function in my already running script.
The script is visiting a website.
We are getting the website online with :
$dom = new DOMDocument();
@$dom->loadHTML($html);
echo $html;
The new function should determine all ahref links on the site and if there is a match whith a link in the array we than need to visit this link. So the new page should be opened.
php
hi could make it fast on js