PHP include once.

Posted by cpburns on Stack Overflow See other posts from Stack Overflow or by cpburns
Published on 2010-04-07T19:09:45Z Indexed on 2010/04/07 19:13 UTC
Read the original article Hit count: 423

Is it more efficient to use PHP's include_once or require_once instead of using c-like include with a header guard?

i.e,

VERSUS

//contents of init.php if (!defined('MY_INIT_PHP')) { define('MY_INIT_PHP', true); ... }

?>

© Stack Overflow or respective owner

Related posts about php

Related posts about include