note 11898 deleted from pear.standards.including.php by jmcastagnetto
| From: | jmcastagnetto@php.net | Date: | Mon, 12 Mar 2001 21:49:30 +0000 |
| Subject: | note 11898 deleted from pear.standards.including.php by jmcastagnetto | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-12319@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.