Re: [PHP] Win32 can't get PEAR to work

2004-09-04 Thread Paul Waring
 Tried installing PEAR. But pear is an unknown command after the
 install in my DOS box. There's no pear.bat file anywhere. There's an
 pear.bat_old file but no pear.bat.

Last time I installed PHP on Win32, I didn't have to run any commands
to install PEAR. You just need to alter your include_path directive in
php.ini (it's fairly well documented in the comments in the file) to
point to the folder with PEAR.php in (e.g. C:\php\pear) and you'll be
able to do:

require 'PEAR.php';

without any problems. If you want to install any other modules
(provided they don't require any kind of Linux/Unix support) just
extract the zip files into the PEAR directory and they'll be picked
up. Most of PEAR (that I've used anyway) is just PHP files that you
include anyway.

Paul

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Win32 can't get PEAR to work

2004-09-04 Thread leegold
Paul Waring wrote:
Tried installing PEAR. But pear is an unknown command after the
install in my DOS box. There's no pear.bat file anywhere. There's an
pear.bat_old file but no pear.bat.

Last time I installed PHP on Win32, I didn't have to run any commands
to install PEAR. You just need to alter your include_path directive in
php.ini (it's fairly well documented in the comments in the file) to
point to the folder with PEAR.php in (e.g. C:\php\pear) and you'll be
able to do:
1. I got two (2) php.ini files one in winnt and one in my apache folder 
which do I modify?

2. Could you tell me specifically the line that needs to be modfied?
It's not obvious to me what line has to be modified and exactly what the 
modification should be.

3. I'll definitely back-up the ini file before trying this btw, I just 
have know specifically what to do.

Thanks


require 'PEAR.php';
without any problems. If you want to install any other modules
(provided they don't require any kind of Linux/Unix support) just
extract the zip files into the PEAR directory and they'll be picked
up. Most of PEAR (that I've used anyway) is just PHP files that you
include anyway.
Paul
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php