Pear loading problem
Posted by: xpix (86.125.49.---)
Date: September 21, 2006 09:49PM

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 sad smiley

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)

Options: ReplyQuote
Re: Pear loading problem
Posted by: xpix (86.125.49.---)
Date: September 22, 2006 07:14PM

I solved it
I am stupid sometimes. I cannot read the error mesages as I should smiling smiley

Options: ReplyQuote
Re: Pear loading problem
Posted by: marak (163.195.192.---)
Date: October 02, 2006 02:05PM

Sir, I dont follow you - what was the fix? Mara

Options: ReplyQuote
Re: Pear loading problem
Posted by: xpix (---.sbs.de)
Date: October 02, 2006 02:27PM

Hi,

I did not installed the XML_Parser package but I installed the XML_RSS.
And RSS uses Parser

Options: ReplyQuote


Sorry, only registered users may post in this forum.