Page 1 of 1

Include/Require and PEAR

Posted: Fri Nov 04, 2005 12:40 pm
by Zaid
Hi folks,

I am using php with IIS on my personal computer (localhost). I have tried using the include/require statements and it is giving me an error where it states that it cannot find the folder named: "c:\php5\pear"

I don't even have such a folder. And there is nothing in PHP.ini that points to such a folder.

In order to use include/require, do I need to have PEAR installed? I don't think it came with the PHP5 package I downloaded.

Any help would be greatly appreciated

Thanks,
Zaid

Posted: Fri Nov 04, 2005 1:25 pm
by Jenk
Look at the setting for include_path in php.ini :)

Change it to where the includes are (i.e. PEAR directory)

Posted: Fri Nov 04, 2005 1:28 pm
by timvw
Simply read and follow the following: http://pear.php.net/manual/en/installation.php.
Afaik, go-pear.php is bundled with php distributions, but pear isn't installed by default...

You might also want to make sure/try out the option to install a "local" version of pear. This way, you can have your own pear configuration without having to depend on your webhost ;)

Posted: Fri Nov 04, 2005 3:05 pm
by Jenk
timvw, he has already said he has installed on localhost.