rotten PEAR

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
timbiotic
Forum Newbie
Posts: 14
Joined: Thu Feb 13, 2003 3:16 pm

rotten PEAR

Post by timbiotic »

I cant get PEAR functions to work on my webserver. I have the latest PHP version installed. Is there something I am missing?

FetchRow()
numRows()

Are the 2 I have tested and neither work... :cry:

thanks for any ideas,

timbiotic
User avatar
Stoker
Forum Regular
Posts: 782
Joined: Thu Jan 23, 2003 9:45 pm
Location: SWNY
Contact:

Post by Stoker »

AFAIK PEAR is not a PHP module, it is a collection of classes/files, so you must include the apropriate file first (and it is easier if the PEAR location is in the include path).. On my Debian system the PEAR files are located in /usr/share/pear
timbiotic
Forum Newbie
Posts: 14
Joined: Thu Feb 13, 2003 3:16 pm

no dice

Post by timbiotic »

tried this no luck...

some PEAR functions seem to work, others dont...
User avatar
Stoker
Forum Regular
Posts: 782
Joined: Thu Jan 23, 2003 9:45 pm
Location: SWNY
Contact:

Post by Stoker »

uhm... where is the pear files located, what does your include path look like and what file(s) did you include?
timbiotic
Forum Newbie
Posts: 14
Joined: Thu Feb 13, 2003 3:16 pm

location

Post by timbiotic »

They are located : C:\php\pear ... Which files do i include for FetchRow() to work?

Typical Include =

Code: Select all

Include("../db.inc");
Maybe I am not including the right files...

Let me know which ones are needed for these functions to work...

Also, I am using an ADO connection, does that affect it? A friend thought that I might need to use a PEAR mdb connection...

Thanks,

timbiotic
User avatar
Stoker
Forum Regular
Posts: 782
Joined: Thu Jan 23, 2003 9:45 pm
Location: SWNY
Contact:

Post by Stoker »

using ../ would only hit it if your webroot is C:\php or C:\ and your access file is in directory in C:\php\pear..

First, Make sure that the includepath has C:\php\pear in it, then just include the pear files without a path.. Which one is the right one I dont recall, we have manuals for such :)
Post Reply