i grabbed an html from this url : http://facebook.com/zuck there is no problem to echo it to the client browser but i found it impossible to parse it with php.
i am trying to parse the text inside div tags for example :
preg_match_all("/<div class=\"mediaPageName\">(.*)<\/div>/",$html,$matches);
print_r($matches);
returns empty array i also tried with DOMDocument and with PHP Simple HTML DOM Parser both of them return empty elements and can't grab the text of the html.
how is it even possible? there is a solution to that?