general php question: include_once vs setting flags
Posted: Tue Oct 09, 2007 9:45 am
Hi folks,
I've been enjoying s9y, looks like a solid product with great features.
I noticed that in several places the system sets a constant (like S9Y_FRAMEWORK) and checks it to make sure a program is included only once.
Would anyone be so kind as to explain why "include_once" is not used?
My PHP experience is very limited, so the above is a real question about coding and not an underhanded attempt to question anyone's coding practices. Just trying to learn.
Thanks a bunch! --Greg
I've been enjoying s9y, looks like a solid product with great features.
I noticed that in several places the system sets a constant (like S9Y_FRAMEWORK) and checks it to make sure a program is included only once.
Would anyone be so kind as to explain why "include_once" is not used?
My PHP experience is very limited, so the above is a real question about coding and not an underhanded attempt to question anyone's coding practices. Just trying to learn.
Thanks a bunch! --Greg