note 11921 deleted from pear.standards.including.php by torben
| From: | torben@php.net | Date: | Tue, 13 Mar 2001 21:33:47 +0000 |
| Subject: | note 11921 deleted from pear.standards.including.php by torben | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-12350@lists.php.net to get a copy of this message | ||
Sorry, hit "add note" instead of "preview"... :)
I mean, that this rule should be explained a little bit more detailed. The word
"unconditional" should be enhanced for example.
An example would be good. For example:
if (!function_exists('hugofunc'))
include('hugofunc.inc');
BTW: Ending includes with '.inc' and adding a rule into the server, that '*.inc'
cannot be displayed is a good way to make includes more or less save. If you let end all files with
'.php' it is not possible to distinct between files, which will be only included and
php-scripts which should be interpreted.
And again: It's not a clean programming style to use *_once()-functions, you should avoid to
use them.