Problems with domxml_open_file

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
piciuriello
Forum Newbie
Posts: 2
Joined: Fri Aug 06, 2004 2:16 am

Problems with domxml_open_file

Post 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
Post Reply