RE: [PEAR-DOC] Coding Standards
| From: | Stephan Schmidt | Date: | Mon, 28 Jun 2004 14:46:37 +0000 |
| Subject: | RE: [PEAR-DOC] Coding Standards | ||
| References: | 1 | Groups: | php.pear.doc |
| Request: | Send a blank email to pear-doc+get-4532@lists.php.net to get a copy of this message | ||
Hi,
> define ('CAT_PACK_BASE', basename(__FILE__));
> require_once CAT_PACK_BASE . 'Driver/mysql.php';
This is not allowed in PEAR. include_once and require_once must always
respect the include_path, as this allows you to put custom drivers in
any directory.
Stephan