אמרתי לך כבר, הם חסמו את האופציה להעתקה מהאתר.
ושיניתי די הרבה,
שלך:
PHP קוד:
<?php
$url = "http://www.toto.org.il/totodata/formprint/toto16.asp";
$str = file_get_contents($url);
preg_match("/class=\"headFont\">(.*)<\/td> /", $str, $arr);
echo $arr[1];
?>
שלי:
PHP קוד:
$url = "http://www.toto.org.il/totodata/formprint/toto16.asp";
$str = file_get_contents($url);
preg_match_all("/<td colspan=6 align=right class=\"headFont\">(.*?)<\/td>/", $str, $arr);
$title = $arr[1][0];
echo $title;
זה נראה לך זהה?