Revision aceaf18c
Added by Phil Davis almost 9 years ago
src/usr/local/www/diag_ndp.php | ||
---|---|---|
67 | 67 |
@ini_set('zlib.output_compression', 0); |
68 | 68 |
@ini_set('implicit_flush', 1); |
69 | 69 |
|
70 |
require("guiconfig.inc"); |
|
70 |
require_once("guiconfig.inc");
|
|
71 | 71 |
|
72 | 72 |
exec("/usr/sbin/ndp -na", $rawdata); |
73 | 73 |
|
Also available in: Unified diff
Always use require_once
The usage of require() and require_once() throughout the system is
inconsistent, and "bugs" come up now and then when the order of
"requires" is a bit different and some require() happens after the
include file is already included/required.
It seems to me that there is no harm at all in always using
require_once().