mr_badger Posted April 28, 2007 Share Posted April 28, 2007 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 More sharing options...
ignace Posted April 28, 2007 Share Posted April 28, 2007 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); Link to comment https://forums.phpfreaks.com/topic/49069-im-having-trouble-with-pear/#findComment-240447 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.