I am new to phpQuery . I need to perform the simple task of retrieving the contents of an HTML TITLE tag on a web page. In this case, I am trying to get the title of the content "Yahoo!", it should be "Yahoo!"
I do this with phpQuery, but now it works
// Testing phpQuery $result = phpQuery::newDocumentFile($scraps['Scrap_yahoo']->getPage('http://www.yahoo.com','','off')) ->find('title'); echo $result->text();
Can someone let me know how to do this?
Best wishes,
source share