Re: Earthquake in Text_Wiki
| From: | Lukas Smith | Date: | Wed, 26 May 2004 22:02:32 +0000 |
| Subject: | Re: Earthquake in Text_Wiki | ||
| References: | 1 2 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-29735@lists.php.net to get a copy of this message | ||
Paul M Jones wrote:
Hi, Jan,seems like we are (yet again) coding around the fact that there is no file_exists() that honors the include path .. all my begging hasnt helped to get something like this into PHP :-( regards, Lukas Smith smith@backendmedia.com _______________________________ BackendMedia www.backendmedia.com berlin@backendmedia.com Linn Zwoch Smith GbR Pariser Str. 44 D-10707 Berlin Tel +49 30 83 22 50 00 Fax +49 30 83 22 50 07This actually easier and faster than searching a whole set of paths.This is good stuff. However, I'm not sure it will work in this particular case. Here's what makes me think so (and I may be wrong).if (!empty($app)) {require_once $app . '/lib/Cache/' . $driver . '.php'; } elseif (@file_exists(dirname(__FILE__) . '/Cache/' . $driver . '.php')) { require_once dirname(__FILE__) . '/Cache/' . $driver . '.php';} else {@include_once 'Horde/Cache/' . $driver . '.php';}