note 11898 added to pear.standards.including.php

From: Date: Mon, 12 Mar 2001 20:50:34 +0000
Subject: note 11898 added to pear.standards.including.php
Groups: php.notes 
Request: Send a blank email to php-notes+get-12312@lists.php.net to get a copy of this message
*_once-expressions have the disadvantage, that they can produce "ugly" code. Good code dosn't need to require anything more than once. In my opinion it is the same, as to shut off the configuration-option 'error_reporting' - you don't see if you include something more than once. So require() and include() should be used in my opinion for the "normal case", require_once() and include_once() should be used in the cases, when it dosn't work in another way. http://www.php.net/manual/en/pear.standards.including.php

« previous php.notes (#12312) next »