Menu

#10 does not load some pages properly

closed
None
2012-10-10
2008-10-29
Anonymous
No

I found a page that does not load properly into the dom object but I have no clue as to why this could be. The example code can look like this:

include('../simple_html_dom.php');

// get DOM from URL or file
$html = file_get_html('http://kitsune.rydia.net/comics/feywinds/fw0000.html');

// find all link
foreach($html->find('a') as $e)
echo $e->href . '
';

// find all image
foreach($html->find('img') as $e)
echo $e->src . '
';

Checking the source of specific page does not reveal any information as for why this does not work. He simply won't find any objects and just throws the whole source into plain text.

using WoS with apache2 & php5

Discussion

  • Nobody/Anonymous

    it's the

    -tag!
    the class has a bug to take everything within pre-tags as plaintext.
    at least I hope it's a bug because I desperately need it fixed...

     

Log in to post a comment.