It doesn't sound like you've installed the package using the PEAR installer. You should install the PHP_Parser package using the PEAR command line installer.
After you install PEAR a file called 'pear.bat' is created, this file contains the guts of the PEAR command line interface. Set your command line pointer to the directory that contains the pear.bat file.
C:\PHP\PEAR>pear install PHP_Parser
Otherwise you can add the path to the directory as an Environment variable.
Control Panel->System->Advanced->Enviornment Variables->System Variables->Path->Edit->Add semi-colon separated path.
Restart the command line, now the simple 'pear' command is available. You can also reference the complete file path.
C:\>C:\php\pear.bat install PHP_Parser
Use the 'help' command for more options. Some examples of allowed arguments are install, upgrade and uninstall, then you provide the name of the package or a path to the package tarball.
C:\>pear help
If the package is not stable the command line will refuse to install it but you can force the installation using an optional --force argument.
C:\PHP\PEAR>pear install --force PHP_Parser
Now, once installed the files of the PHP_Parser package should be available via the PEAR include path and may be included from any directory.
The installer automatically creates the necessary directories and manages all of the files associated with the package.
I did just notice that this pacakge is in development state, the lowest possible state! I'd be leary of bugs and such things, still probably better than starting from scratch. As far as how to use the package, I have never used this package so I haven't a clue on that end of it. You can always solicit help from the package's developers. Many of them are subscribed to the PEAR general mailing list.
Find that list here:
http://pear.php.net/support/lists.php
I'd encourage you to help the developers by reporting any bugs that you find, since this package is in such an early stage of development.
Regards,
Rich
--
[
http://www.smilingsouls.net]
[
http://pear.php.net/Mail_IMAP] A PHP/C-Client/PEAR solution for webmail