newbie: pear, include_paths and require_once.
| From: | Jon Bennett | Date: | Thu, 13 Nov 2003 12:01:36 +0000 |
| Subject: | newbie: pear, include_paths and require_once. | ||
| Groups: | php.pear.general | ||
| Request: | Send a blank email to pear-general+get-8886@lists.php.net to get a copy of this message | ||
Hi,
I'm trying to go through a book I bought (php/mysql programming - problem design solution Wrox press (now apress)) and it seems to want me to include (using require_once) different files from the PEAR libs. I'm running php4.3 so these libs should be installed as standard ?????
If I put a phpinfo page on my local server I can find no references to PEAR anywhere, but the book requires a .htaccess file to setup include paths to various classes etc and the location of PEAR on the server. do I still need to put an explitict include_path to the PEAR libs or is this line of code now redundant ???
Also, the classes I'm writing (again from the book) use:
require_once("Mail.php")
require_once("DB.php")
which 'include and extend' the PEAR class obj, but if I can't find a specific path to PEAR, if I can't setup an include_path how can I use a require_once ??? ??
Sorry this is so vague :-)
Thanks,
Jon
jon bennett | jon@jben.net
new media designer / developer
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
J b e n . n e t
91 Gloucester Rd, Trowbridge, Wilts, BA14 0AD
t: +44 (0) 1225 341039 w: http://www.jben.net/