- file_get_contents: documentation ( source)
- var_dump: documentation ( source)
- preg_match_all: documentation ( source)
<?php
$relatedproduct = file_get_contents("http://shop.agesto.co.uk/belkin.txt");
preg_match_all('/\s*(.*) <\/a>/', $relatedproduct, $relatedtit);
var_dump($relatedtit);