ציטוט:
נכתב במקור על ידי Elad-A
אמרתי לך כבר, הם חסמו את האופציה להעתקה מהאתר.
ושיניתי די הרבה,
שלך:
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;
זה נראה לך זהה?
|
לא אמרתי זהה,
אני מתכוון שאין שינוי מהותי שפתר לי את הבעיה.
בכל מקרה מפה אפשר גם להוציא את הנתונים
http://www.toto.org.il/85_normal.asp