Júnior Masculí

[insert_php]
$url = “http://www.basquetcatala.cat/competicions/resultats/09440001-4”;

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=”‘, ‘href=”http://www.basquetcatala.cat’, $output);
$output = str_replace(‘
“.$output;
} else {
echo ‘No s\’ha trobat l\’equip’;
}
[/insert_php]