Ho questo codice:
Codice PHP:
<?php
$url = "http://sito.it/pagina.html";
$input = @file_get_contents($url) or die('Could not access file: $url');
$regexp = "/\s[*][b]Nome:<\/b>(.*)<\/li><\/div>/siU";
preg_match_all("$regexp", $input, $matches, PREG_SET_ORDER);
foreach($matches10 as $match) {
$nome = $match[1];
echo $nome;
echo "
";
}
Vorrei renderla un po piu flessibile permettendo ad un admin di decidere la pagina dalla quale prende..
in pratica sostituire $url = "http://sito.it/pagina.html"; con un valore preso da un input.