For Programmers: Free Programming Magazines  


Home > Archive > PHP Pear > October 2007 > 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 PEAR::Config - conflict
Mark Steudel

2007-10-29, 7:04 pm

Hi All,



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?




Thanks, Mark



--------------------------------------

Our Adventures

http://www.steudel.org/blog



Our Work

http://www.mindfulinteractive.com




Carsten Wiedmann

2007-10-29, 7:04 pm

Christian Weiske schrieb:

> 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'/


He can also include his "config.php" with:
| include './config.php'; (no include_path is used)

And PEAR::Config with:
| include 'Config.php'; (include_path is used)

Regards,
Carsten
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com