scusate se riprendo questo argomento....
ho provato ad usare questo pezzo di codice :
Codice PHP:
<?
$handle = fopen("http://www.cremavolley.it/", "rb");
$contents = '';
while (!feof($handle)) {
$contents .= fread($handle, 8192);
}
fclose($handle);
preg_match_all('/<div id="spazio-banner">([^\>]+)</div>/', $contents, $risultato);
echo "<pre>";
echo htmlentities($risultato[1][0]);
echo "</pre>";
?>
ma quando lo faccio partire il server mi restituisce la seguente scritta:
Warning: preg_match_all() [function.preg-match-all]: Unknown modifier 'd' in /htbudget.php on line 9
Cosa vuol dire?io non vedo nessuna 'd' nella riga...