cgm225 Posted March 31, 2008 Share Posted March 31, 2008 Require, Require_once, Include, Include_once... what should I be using, when? Link to comment https://forums.phpfreaks.com/topic/98837-require-require_once-include-include_once-what-should-i-be-using-when/ Share on other sites More sharing options...
nadeemshafi9 Posted March 31, 2008 Share Posted March 31, 2008 yeh somone tell me too i dont bother should i be bothering ? does it affect gloabals etc Link to comment https://forums.phpfreaks.com/topic/98837-require-require_once-include-include_once-what-should-i-be-using-when/#findComment-505743 Share on other sites More sharing options...
BlueSkyIS Posted March 31, 2008 Share Posted March 31, 2008 http://us3.php.net/manual/en/function.include-once.php http://us3.php.net/require_once Link to comment https://forums.phpfreaks.com/topic/98837-require-require_once-include-include_once-what-should-i-be-using-when/#findComment-505745 Share on other sites More sharing options...
cgm225 Posted March 31, 2008 Author Share Posted March 31, 2008 but what is the difference between require_once and include_once? Link to comment https://forums.phpfreaks.com/topic/98837-require-require_once-include-include_once-what-should-i-be-using-when/#findComment-505763 Share on other sites More sharing options...
maexus Posted March 31, 2008 Share Posted March 31, 2008 Honestly, I've always used require_once as the files I choose to include are required for a script to work and I only need to call them once (if I call them more than once, it would cause issues) so require_once solves that. Link to comment https://forums.phpfreaks.com/topic/98837-require-require_once-include-include_once-what-should-i-be-using-when/#findComment-505796 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.