i'm using php5.1 which is supposed to have XMLReader included and enable.
however when i try to use it i get a class not found error
my code is below
class Config
{
function __construct(){
$oXMLReader = new XMLReader();
$oXMLReader->open("../../config/config.xml");
if ($oXMLReader->isValid())
{
print("true");
}
else
{
print("false");
}
}
}
Fatal error: Class 'XMLReader' not found in C:\www\phpsite2\modules\core\config.php on line 7
line 7 being :
$oXMLReader = new XMLReader();
does anyone know why this error is occuring when php comes with xmlreader pre-installed?