Home > Archive > PHP Pear > October 2007 > Re: [PEAR] PEAR::Config - conflict
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Re: [PEAR] PEAR::Config - conflict
|
|
| Christian Weiske 2007-10-29, 7:04 pm |
| Mark,
> I was wondering if I already have a file that I am including in my classes
> called config.php and I install PEAR::Config will I start getting conflicts?
You should not because Config.php has an upppercase C in its name.
Unless you are on windows, which gives you trouble.
--
Christian Weiske <cweiske@cweiske.de>
| |
| Mark Steudel 2007-10-29, 7:04 pm |
| Bummer, windows strikes again ...
Thanks, Mark
-----Original Message-----
From: Christian Weiske [mailto:cweiske@cweiske.de]
Sent: Monday, October 29, 2007 4:31 PM
To: pear-general@lists.php.net
Subject: Re: [PEAR] PEAR::Config - conflict
Mark,
> I was wondering if I already have a file that I am including in my classes
> called config.php and I install PEAR::Config will I start getting
conflicts?
You should not because Config.php has an upppercase C in its name.
Unless you are on windows, which gives you trouble.
--
Christian Weiske <cweiske@cweiske.de>
--
PEAR General Mailing List (http://pear.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
| |
| Christian Weiske 2007-10-29, 7:04 pm |
| Mark,
> Bummer, windows strikes again ...
1. You can still fix it with include path magic.
Put the pear path before your local path ".", and pear's config will be included first. Your own config can be included with dirname(__FILE__) . '/config.php' from your index.php
2. Put your own config.php into a subdir and include it with 'subdir/config.php'/
--
Christian Weiske <cweiske@cweiske.de>
|
|
|
|
|