Re: Loading a html file using DOM XML

From: Date: Mon, 30 Aug 2004 10:40:27 +0000
Subject: Re: Loading a html file using DOM XML
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-195153@lists.php.net to get a copy of this message
It is now working when I use php from a command line (calling php.exe). If I undo a couple of changes that I did to make the document "well-formed", I get a lot of warnings, but domxml_open_file does return something useful. More specifically, domxml_open_file is now reading a HTML file and dump_mem will write the HTML out to standard output. Perhaps a system restart was needed; if so, then saying that the problem is obviously with the data sure did not help. The only other change I am aware of is that I applied the SP2 fix for XP (which is a major fix). So now, when Apache starts, it does not complain that it can't find the extension DLLs, but domxml_open_file is still returning null from the Apache environment but the exact same thing is working from the command line. So I have looked at both php.ini and the Apache conf file and they look okay, but I will continue to look. "Christian Stocker" <chregu@gmail.com> wrote in message news:49373ab704082905387f0c9f49@mail.gmail.com... > It's obviously not a well-formed XML Document... > > chregu > > On Sun, 29 Aug 2004 05:11:19 -0700, Sam Hobbs <socalsam@bigfoot.com> > wrote: >> Is it possible to load a HTML file using DOM XML? >> >> I tried loading a HTML file using: >> >> $Document = domxml_open_file("DynamicTable.html"); >> if (!$Document) { >> echo "Error loading the document\n"; >> exit; >> } >> >> Yet that does not work; I get the error.

« previous php.general (#195153) next »