Page 1 of 1

pear fatal error with xampp

PostPosted: 10. June 2009 17:30
by IRG
I installed xampp 1.7.1 with php 5.2.9. I encountered a very strange problem with pear classes. If I include a class which is in the pear directory I have no problems
Code: Select all
include 'MDB2.php';


However, if I try to include a class from a subfolder of pear folder
Code: Select all
include 'HTML/QuickForm/Controller.php';

i get Fatal error: Class 'HTML_QuickFormController' not found in C:\xampp\htdocs\DTRsurvey\survey.php on line 47

If I use
Code: Select all
 var_dump(class_exists('Span'));

it returns true for the classes in the pear folder and false for the classes in the pear subfolders.

Please help!! It is very puzzling. :o

Re: pear fatal error with xampp

PostPosted: 10. June 2009 18:12
by Wiedmann
Code: Select all
include 'HTML/QuickForm/Controller.php';

You have installed HTML_QuickForm_Controller yourself?
(IMHO it's not part of the XAMPP package).