i'm trying to use the dom extension in PHP5 to read an xml file
<?php
$stuff = new DomDocument('1.0');
$stuff->load('library.xml');
...
the code fails in the second line saying that it can't instantiate the object. i think my php isn't finding the library that contains the DomDocument class. i'm having a similar problem running
$handle = sqlite_open($db);
where it says that the sqlite_open() function is undefined.
i'm running mac osx 10.3.9 and installed php5 this morning and it works fine until i try calling any of the functions or classes in these extensions. i thought that the dom and sqlite extensions were automatically included in php5 and i checked phpinfo() in which both dom and sqlite seem to be enabled. i'm probably being stupid. thanks for the help.