On Thu, Apr 10, 2008 at 10:48 AM, Ciaran McNulty <[EMAIL PROTECTED]> wrote:
>  The only problem I can see is that it doesn't handle invalid HTML that
>  well (an example would be http://ciaranmcnulty.livejournal.com/).

In fact it does just look like you need to turn down error reporting
to do that (or precede your loadHtml() call with an @).

You do also need to check the return value of your fopen() - if I
enter a URL that 404s, your code appears to keep trying to read from
that resource, meaning I get returned a few hundred Mb of 'error in
fread - file resource is not valid' type messages.

Send me an email off-list of you want me to take a look at those bits for you.

-Ciaran McNulty
_______________________________________________
microformats-discuss mailing list
microformats-discuss@microformats.org
http://microformats.org/mailman/listinfo/microformats-discuss

Reply via email to