1
我想从这个网址PHP如何在这种情况下获得html原始代码?
http://www.ladige.it/news/2008_lay_notizia_01.php?id_cat=4&id_news=100152
我试图simple html dom
和php regular-expression
获取文本betweeen <td valign="top" class="notizia_testo"></td>
,但没有返回。我检查了HTML原始代码,并复制它们为:
<?php
$str = <<<EOT
//all the html raw code
EOT;
preg_match_all("|<td valign=\"top\" class=\"notizia_testo\">([^^]*?)</td>|u", $str, $matches1);
print_r($matches1);
?>
我终于找到了故障可能造成的:
line 762 <!?php include($_SERVER["DOCUMENT_ROOT"]."/include/adv/manzoni_bigrect.php"); ?>
如何通过这条线,并为我工作?谢谢。
什么,如果有的话,错误信息你好吗? – mdm 2011-03-14 09:51:30
@mdm,我想要在'
' Wiseguy 2011-03-14 10:42:36