Hello all,
I just install wamp and I cannot load a pear package into my php file
Here is a short description of what I have done
istalled wamp on windows XP SP2
php works
execute go_pear (system instalation - default values)
added PEAR_ENV.reg in registry
installed XML_tree package via "pear install XML_tree"
installed XML_RSS package via "pear install XML_RSS" - NOTE: Rss.php can be found in C:\wamp\php\PEAR\XML
added into php.ini : include_path=".;C:\wamp\php\pear"
in my php file: require_once "XML/RSS.php" (I used only this to make sure it works)
execute file
error:
Warning: require_once(XML/Parser.php) [function.require-once]: failed to open stream: No such file or directory in C:\wamp\php\PEAR\XML\RSS.php on line 23
Fatal error: require_once() [function.require]: Failed opening required 'XML/Parser.php' (include_path='.;C:\wamp\php\pear') in C:\wamp\php\PEAR\XML\RSS.php on line 23
Even if the path C:\wamp\php\PEAR\XML\RSS.php is correct in my system the error above is given.
So basically I cannot use PEAR
Any ideas are welcomed
Thank you
UPDATE:
I also restarted wamp via wamp "Restart All Services"
UPDATE2:
Code:
set_include_path('c:\wamp\php\pear\xml');
echo get_include_path();
require_once "rss.php";
Output:
c:\wamp\php\pear\xml
Warning: require_once(XML/Parser.php) [function.require-once]: failed to open stream: No such file or directory in c:\wamp\php\PEAR\XML\RSS.php on line 23
Fatal error: require_once() [function.require]: Failed opening required 'XML/Parser.php' (include_path='c:\wamp\php\pear\xml') in c:\wamp\php\PEAR\XML\RSS.php on line 23
Post Edited (09-22-06 07:38)