Page 1 of 1

Problems with domxml_open_file

Posted: Fri Aug 06, 2004 2:16 am
by piciuriello
Hi!
I can't make DOMXML library work well.
The function domxml_open_file works in a strange way.
This is the code I use:
if (! $domXmlObj = domxml_open_file("test.xml")) {
die("Cannot parse the xml file.");
}
I allways get the error message.

The file test.xml is in the same directory of the php script.
I also tried to use an absolute path, but it doesn't work.
The only way it worked was using an URL http://... (so I think the library is well installed), but obviously this is not what I want.
I tried to verify that the file is really readable with a normal fopen and it is, I also verified with is_file and is_readable and all was ok.
I don't understand what's the problem, what did I mistake?

Someone can help?
Thank you.

P.S. I use Apache/1.3.29 (Win32), PHP/4.3.4, libxml 20510, libxslt 1.0.30, iconv library 1.8

P.S./2 Sorry for MY English