note 51166 added to function.require-once
| From: | ulderico at maber dot com dot br | Date: | Tue, 22 Mar 2005 13:38:19 +0000 |
| Subject: | note 51166 added to function.require-once | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-86781@lists.php.net to get a copy of this message | ||
With both of your functions guys, Pure-PHP and jtaal at eljakim dot nl, you'll not have any
variables available GLOBALly if they're supposed to be globals...
That's why my import handles better those situation. OK, SOME MAY DISPUTE that using
include_once and require_once may slow down an application. But what's the use to do IN PHP
what the interpreter *should* do better for you. Thusly these workarounds shall, some time in the
future, DIE.
Thus It's better to well design your application to keep some order using few INCLUDES and
REQUIRES in it rather than insert MANY AND SEVERAL *_once around.
----
Manual Page -- http://www.php.net/manual/en/function.require-once.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+51166
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+51166&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+51166&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+51166&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+51166&report=yes&reason=useless
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+51166&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+51166&report=yes
Search -- http://master.php.net/manage/user-notes.php