Re: Coding Standards
| From: | Lukas Smith | Date: | Tue, 29 Jun 2004 15:10:38 +0000 |
| Subject: | Re: Coding Standards | ||
| References: | 1 2 3 4 | Groups: | php.pear.doc |
| Request: | Send a blank email to pear-doc+get-4545@lists.php.net to get a copy of this message | ||
Daniel Convissor wrote:
Hi Aidan: On Tue, Jun 22, 2004 at 09:56:38PM +1000, Aidan Lister wrote:I remember promoting dirname(__FILE__) a while back. Stig had some arguments that shot me down. The funny thing is neither of us two remembers them :-) I havent spend the time to dig through the pear-dev archive in the hopes of finding Stig's specific argument. 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 07[dan wrote --dc][aidan wrote --dc] [aren't attributions helpful? --dc]True, but it's faster and allows you to check if a file exists before including it.define ('CAT_PACK_BASE', basename(__FILE__)); require_once CAT_PACK_BASE . 'Driver/mysql.php';Yuck. Defining constants is expensive. Plus it obfuscates what's being included.