Hi;
I run apache/php/mysql on win xp, as development machine.
I've installed php with PEAR enabled.
The PEAR directory is within my PHP directory.
I've modified the php.ini to point to H:\web\webserver\php\PEAR , which is where resides.
However I still can't use PEAR classes.
I have a simple test page:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
</head>
<body>
<?php
// include class file
include("XML/Serializer.php");
// create object
$serializer = new XML_Serializer();
// create array to be serialized
$xml = array ( "book" => array (
"title" => "Oliver Twist",
"author" => "Charles Dickens"));
// perform serialization
$result = $serializer->serialize($xml);
// check result code and display XML if success
if($result === true)
{
echo $serializer->getSerializedData();
}
?>
</body>
</html>
It results in the following errors:
Warning: include(XML/Serializer.php) [function.include]: failed to open stream: No such file or directory in H:\web\webserver\htdocs\testpear.php on line 8
Warning: include() [function.include]: Failed opening 'XML/Serializer.php' for inclusion (include_path='.;_includes.;H:\web\webserver\php\PEAR') in H:\web\webserver\htdocs\testpear.php on line 8
Fatal error: Class 'XML_Serializer' not found in H:\web\webserver\htdocs\testpear.php on line 10
Any ideas as what the problem is?
thanks
Kamy