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
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);

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.