note 11921 added to pear.standards.including.php

From: Date: Tue, 13 Mar 2001 16:49:59 +0000
Subject: note 11921 added to pear.standards.including.php
Groups: php.notes 
Request: Send a blank email to php-notes+get-12339@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. http://www.php.net/manual/en/pear.standards.including.php

« previous php.notes (#12339) next »