View Single Post
Old 11-22-2012, 02:47 AM   PM User | #1
doubledee
Regular Coder

 
doubledee's Avatar
 
Join Date: Mar 2011
Location: Arizona
Posts: 612
Thanks: 19
Thanked 0 Times in 0 Posts
doubledee has a little shameless behaviour in the past
Any harm in Duplicate Include/Require?

Is there any real harm if I end up having this code twice in a script...
PHP Code:
    // Access Functions.
    
require_once(WEB_ROOT 'utilities/functions.php'); 

It may sound like a funny question, but since I am using procedural code - and maybe didn't plan things out as well as I could have - it is conceivable that I could have the above code in "script_1.php" which requires/includes "script_3.php"?!

Maybe when I start on v3.0 and hopefully start using OOP, I can solve some of these issues, but in the interim, I am wondering if such a scenario is a major deal?

Thanks,


Debbie
doubledee is offline   Reply With Quote