 |
Apache2Triad Help, Support and Development The apache2triad help , support and development forums
|
| View previous topic :: View next topic |
| Author |
Message |
dbaker
Joined: 24 Oct 2006
Posts: 1
|
| Posted: Tue Oct 24, 2006 8:24 pm Post subject: How to use the bundled PEAR pages |
|
|
I would like to use PEAR DB to abstract my database operations and I see that it is loaded as part of a2t. However, I am not sure how to include the db.php file since it is located in a seperate folder tree from htdocs. Is there a way to reference the db.php where it sits, or do I need to move it (or the whole pear folder) into the htdocs folder.
Any help would be greatly appreciated. |
|
| Back to top |
|
rickh57
Joined: 24 Dec 2004
Posts: 32
|
| Posted: Wed Oct 25, 2006 1:25 pm Post subject: |
|
|
PEAR should already be in the php include path. All you should have to do is include it:
require_once 'DB.php'; |
|
| Back to top |
|
| |
|