I have an HTML with many links. I am currently able to get links, just all over, I would only get a certain word.
$dom = new DOMDocument;
$dom->loadHTML($html);
$links = $dom->getElementsByTagName('a');
foreach ($links as $link){
echo $link->getAttribute('href');
}
I would list only links that contained a certain word, example: sendspace.com
result would be more or less below the:
http://www.fileserve.com/file/eDpDMm9sad/
http://www.fileserve.com/file/7s83hjh347/
I would then convert these links to sha1.
after conversion to save the html sha1 already applied to the links with the words contained.