user6133
user6133

Reputation: 117

(PHP)(XAMPP) how do i fix this error: Fatal error: require_once(): Failed opening required 'PEAR.php' (include_path='.;C:\php\pear')

when i run this: http://localhost/EventCalenderPHP/Sourcescode/demo.php

i get this error:

Warning: require_once(PEAR.php): failed to open stream: No such file or directory in C:\xampp\htdocs\EventCalenderPHP\Sourcescode\includes\Mail.php on line 46

Fatal error: require_once(): Failed opening required 'PEAR.php' (include_path='.;C:\php\pear') in C:\xampp\htdocs\EventCalenderPHP\Sourcescode\includes\Mail.php on line 46

https://github.com/cherishsantosh/EventCalenderPHP

Upvotes: 1

Views: 6820

Answers (1)

maxxon15
maxxon15

Reputation: 1639

Small mistake: There is no folder named "Sourcescode".
Look closely, there is a space in between.

Give the correct address when you're including the file. That'll fix the error.

Since there is no folder named "Sourcescode", php is unable to find the Mail.php file.

enter image description here

Upvotes: 2

Related Questions