Re: Can't redeclare already declared function

From: Date: Thu, 12 Apr 2001 09:58:39 +0000
Subject: Re: Can't redeclare already declared function
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-48277@lists.php.net to get a copy of this message
On Wednesday 11 April 2001 17:50, you wrote: > Thanks to all who suggested using include_once. Maybe it is just me > (long FORTRAN background), but the very idea of include_once makes me > nervous, and I don't use it. It violates my sense of acceptable design. > I would rather design my code such that a file is *really* only > included once, if that is what is supposed to happen. I *want* PHP to I'd say *not* using include_once () leads to worse design, because it means that for every module you have to know (a) where it is included from and (b) what is included by the files it is included from. Sounds complicated because it *is* complicated. It's much better to let each module include_once() everything it depends on. -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) "These are the people who proudly call themselves "hackers" -- not as the term is now abused by journalists to mean a computer criminal, but in its true and original sense of an enthusiast, an artist, a tinkerer, a problem solver, an expert." - ESR

« previous php.general (#48277) next »