|
Posted by Matthew Weier O'Phinney on 04/23/05 04:23
* Richard Lynch <ceo@l-i-e.com>:
> On Fri, April 22, 2005 5:25 pm, Tomás Rodriguez Orta said:
> > Hello friends
> > I try to use the packet pear, but I have a big problem, the IE
> > show me the following Error.
> > Fatal error: Class 'Pager' not found in D:\Angerona\paginas\1.php
> > on line 9
> > require 'Pager.php';
> > the line 9 --->$pager = new Pager($res, $from, $limit);
> > somebody can help me?
> >
> > why the class Pager not found if I include_path at the file php.ini?
> >
> > PD: I use php over windows.
>
> The rest of the error message should be telling you what PHP is using for
> include_path.
>
> Does that match what you expect?
>
> If not, then you don't have php.ini the way it should be. Check the
> location of php.ini in <?php phpinfo();?>
I have to second Richard on this -- check your php.ini file, and make
sure that the directory where PEAR and/or the PEAR::Pager class are
located are in your include_path. Then, once you are sure of that, make
sure that Pager.php is at the top of one of the paths in your
include_path.
> If it *does* match, then maybe your Pager.php file is messed up and the
> class is missing a closing bracket, so your script thinks you're still in
> the middle of your class definition.
I'm guessing this is probably *not* the case... it's a PEAR package, and
if it's considered stable, this is *highly* unlikely. (Plus, if it's the
stable version, then I'm running it on my production servers, and I
*know* it's working fine!)
--
Matthew Weier O'Phinney | WEBSITES:
Webmaster and IT Specialist | http://www.garden.org
National Gardening Association | http://www.kidsgardening.com
802-863-5251 x156 | http://nationalgardenmonth.org
mailto:matthew@garden.org | http://vermontbotanical.org
[Back to original message]
|