I have a script which is looking for DB.php. I've installed PEAR (9.3, php4). What do I have to do to get apache to see the pear installation? Cheers, Steve.
steve wrote:
I have a script which is looking for DB.php. I've installed PEAR (9.3, php4). What do I have to do to get apache to see the pear installation?
The PEAR installation directory must be in PHP's include path - try this: <?php echo get_include_path(); ?> It should say something like this: .:/usr/share/php If you find out that your PEAR is not included in the path, then you have to set it in php.ini: include_path = ".:/usr/share/php" (don't forget to restart apache) I'm using Suse 9.1, so the paths on your system might be different. robert
On Monday 16 May 2005 15:43, Robert Manfreda wrote:
steve wrote:
I have a script which is looking for DB.php. I've installed PEAR (9.3, php4). What do I have to do to get apache to see the pear installation?
The PEAR installation directory must be in PHP's include path - try this:
<?php echo get_include_path(); ?>
It should say something like this: .:/usr/share/php
If you find out that your PEAR is not included in the path, then you have to set it in php.ini: include_path = ".:/usr/share/php"
(don't forget to restart apache)
I'm using Suse 9.1, so the paths on your system might be different.
robert
Mine says this: ; UNIX: "/path1:/path2" ;include_path = ".:/php/includes" Both lines are commentred out. Do I change the existing line or add another include_path line? Cheers, Steve.
On Monday 16 May 2005 16:46, steve wrote:
; UNIX: "/path1:/path2" ;include_path = ".:/php/includes"
Rewrite the second line to read: include_path = ".:/php/includes:/usr/share/php" -- Pob hwyl / Best wishes Kevin Donnelly www.kyfieithu.co.uk - Meddalwedd Rhydd yn Gymraeg www.cymrux.org.uk - Linux Cymraeg ar un CD!
participants (3)
-
Kevin Donnelly
-
Robert Manfreda
-
steve