重複の可能性:
PHPでHTMLを解析および処理する方法は?
このコードを使用して、特定のURLのWebサイトからHTMLコンテンツを取得しました。
**Code:**
=================================================================
example URL: http://www.qatarsale.com/EnMain.aspx
/*
$regexp = '/<div id="UpdatePanel4">(.*?)<\/div>/i';
@preg_match_all($regexp, @file_get_contents('http://www.qatarsale.com/EnMain.aspx'), $matches, PREG_SET_ORDER);*/
/*
ただし、$matchesは空白の配列を返します。div id="UpdatePanel4"にあるすべてのhtmlコンテンツをフェッチしたい。
誰かが解決策を持っているなら、私に提案してください。
ありがとう