directory structure when php.ini not accessible?
| From: | Rasmus Jørgensen | Date: | Mon, 10 Feb 2003 11:42:43 +0000 |
| Subject: | directory structure when php.ini not accessible? | ||
| Groups: | php.pear.general | ||
| Request: | Send a blank email to pear-general+get-3686@lists.php.net to get a copy of this message | ||
I've not managed to find a installation guideline for PEAR and DB package
when one do not have access to configure include_path in php.ini.
Where is it?
I've retreived the PEAR and DB tar's from http://pear.php.net and have
placed the files in the following structure:
myfunctions/DB.php
myfunctions/DB/
myfunctions/PEAR/
and then does:
require_once ("$DOCUMENT_ROOT/myfunctions/DB.php");
So of course I get the errormessage that DB.php failed to include PEAR.php
as this is placed in /PEAR/, but the file assumes that /PEAR/ was part of
include_path, which is not the case as I do not have access to edit php.ini.
So I edit DB.php line 25: require_once "PEAR.php";
to:
require_once "PEAR/PEAR.php";
And know it seems DB layer works, but does it?
Do I run into other (undiscovered) problems with this structure / editing
DB.php?
Does anyone fancy to give me feed-back on whether the placement of
files/folders is correct or if there is a structure that does not need
editing in the files downloaded from pear.php.net?
Best regards
Rasmus
This e-mail and any files transmitted with it are confidential and intended
solely for the use of the individual or entity to whom they are addressed.
If you are not the intended recipient you are notified that any use,
disclosure, copying or distribution of the information is prohibited. In
such case, you should destroy this message and kindly notify the sender by
reply e-mail.