Ha, really enjoy writing blog entry in English now, so much faster than written in Chinese, or it just imply my Chinese PingYing sucks?
so since long time ago, I already realized the different between include_once and require _once function in PHP language, which is require will halt the process and report error immediately , and include_once will continue process.
As well as I being told in many articles that use require on unconditional import, and use include on conditional import, which this is also a standard coding style in PHP Pear and Pecl repository.
So what is the real difference on using "include_once" and "require_once", or by meaning of "uncondictional" or "conditional" import, Here is some of my thoughts: unconditional import are usually used by the developer which needs to be there. and use "conditional" import to deal with dynamical generated code, such as "template", "user style", which the user generate, and they could make mistakes, and should be ignored, and mistakes by developer is not allowed, so use "require_once" to enable the strict standard.
^.^ , the (^ Not) regular expression still bother me, will figure it out soon, I hope, and write a entry about it.
so since long time ago, I already realized the different between include_once and require _once function in PHP language, which is require will halt the process and report error immediately , and include_once will continue process.
As well as I being told in many articles that use require on unconditional import, and use include on conditional import, which this is also a standard coding style in PHP Pear and Pecl repository.
So what is the real difference on using "include_once" and "require_once", or by meaning of "uncondictional" or "conditional" import, Here is some of my thoughts: unconditional import are usually used by the developer which needs to be there. and use "conditional" import to deal with dynamical generated code, such as "template", "user style", which the user generate, and they could make mistakes, and should be ignored, and mistakes by developer is not allowed, so use "require_once" to enable the strict standard.
^.^ , the (^ Not) regular expression still bother me, will figure it out soon, I hope, and write a entry about it.
Facebook has chat application on (really worth it?)
群星-北京欢迎您-完整版



2008/04/24 11:42 
