Jump to content

I'm having trouble with PEAR


mr_badger

Recommended Posts

I'am getting this message when trying to view a page.

 

Warning: require_once(PEAR.php) [function.require-once]: failed to open stream: No such file or directory in C:\wamp\php\QuickForm.php on line 22

 

Fatal error: require_once() [function.require]: Failed opening required 'PEAR.php' (include_path='.;C:\php5\pear') in C:\wamp\php\QuickForm.php on line 22

 

Any ideas on what to do? I can't find PEAR.php on my computer.

Link to comment
https://forums.phpfreaks.com/topic/49069-im-having-trouble-with-pear/
Share on other sites

normally your PEAR.php file should be in C:\php5\pear, if it is not in that directory, then you can obtain a copy from http://pear.php.net, if you would like to set the pear directory somewhere else, use:

 

$my_path = 'your/path/to/pear/folder'; // no trailing slash

$incl_path = ini_get('include_path');

 

ini_set('include_path', $incl_path . PATH_SEPERATOR . $my_path);

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.