This question already has an answer here:
- PHP's white screen of death 15 answers
Hi I want to get all titles from one web page source. So I try to use php xpath and I write:
- $dom = new DOMDocument();
- @$dom->loadHTMLFile('http://some-site.com/egypt/book-shops');
- $xpath = new DOMXPath($dom);
- $entries = $xpath->query("//td[@class='icon']/i/@title");
- foreach($entries as $e) {
- echo 'Title is : ' . $e->textContent . '<br />';
- }
the web source code is:
- <td class="icons">
- <i title="info@some-site.de" data-shopnameid="Good Life" class="icon email-small message-shop" id="message-shop-8"></i>
- ... ... ...
Where I wrong, what is error. I just get white screen.
</div>