Hi RiggsFolly or anybody else that can help me.
PHP DIR = C:\wamp\bin\php\php5.3.1
PEAR DIR = C:\wamp\bin\php\php5.3.1\pear
I followed the advice above to install PEAR on my machine. It seems to be successfull and when I ran on my Windows XP commandline the 'pear', 'pear version' and 'pear config-get php_dir' commands then I get the desired results but ....
when I ran:
C:\wamp\bin\php\php5.3.1>php --ini
I get"
Configuration File (php.ini) Path: C:\WINDOWS
Loaded Configuration File: C:\wamp\bin\php\php5.3.1\php.ini
Scan for additional .ini files in: (none)
Additional .ini files parsed: (none)
Now where on earth is it getting the information that my PHP.INI is in C:\WINDOWS ? I looked in C:\WINDOWS and there is no PHP.INI in that folder.
Then when I create the following file:
Location = [
localhost]
Content =
<?php
require_once 'System.php';
var_dump(class_exists('System', false));
?>
then I get:
Warning: require_once(System.php) [function.require-once]: failed to open stream: No such file or directory in C:\wamp\www\check_pear.php on line 2 (see my check_pear.php content above)
Fatal error: require_once() [function.require]: Failed opening required 'System.php' (include_path='.;C:\php5\pear') in C:\wamp\www\check_pear.php on line 2 (see my check_pear.php content above)
Now again, where on earth is it getting the information that my include path for PEAR is C:\php5\pear ? I looked in C:\ and there is no php5 folder.
I even search through C:\wamp\bin\php\php5.3.1 for the string 'C:\php5\pear' and it does not appear in any file. I also checked the files in any subfolders under C:\wamp\bin\php\php5.3.1
Thanks in advance.