[insert_php]
$url =”https://www.basquetcatala.cat/competicions/resultats/7587″;
if ($url != null) {
$file = file_get_contents($url);
$patternStart = ‘‘;
$patternEnd = ‘‘;
$output = substr($file, strpos($file, $patternStart, 9000));
//Set start offset trying to avoid possible overload
$output = substr_replace($output, ”, strrpos($output, $patternEnd), strlen($output));
//Set start offset trying to avoid possible overload
$output = str_replace(‘href=”/equip’, ‘href=”https://www.basquetcatala.cat/equip’, $output);
$output = str_replace(‘<a’, ‘
$output=str_replace(‘src=”‘,’src=”http://www.basquetcatala.cat’, $output);
$output = str_replace(‘height:280px’, ‘height:0px’, $output);
echo ‘
‘.$output.’
‘;} else {echo ‘No s\’ha trobat l\’equip’;}
[/insert_php]