Introduction: This is a detailed page of PHP file reference methods. It introduces the knowledge, skills, and experience related to PhP, PHP, and file reference methods, and some PHP source code.
Class = 'pingjiaf' frameborder = '0' src = 'HTTP: // biancheng.dnbc?info/pingjia.php? Id = 360991 'rolling = 'no'>
From: http://www.phpweblog.net/yemoo/archive/2007/09/29/2046.html
There are two methods to reference files: require and include. The two methods provide different elasticity.
The use of require is as follows:Require ("myrequirefile. php ");. This function is usually stored in PHPProgramBefore the PHP program is executed, it will first read the file specified by require to make it a part of the PHP program webpage. This method can also be used to introduce common functions into webpages.
The use of include is as follows:Include ("mydomaindefile. php ");. This function is generally placed in the Process of process control. The PHP program webpage reads the include file. In this way, you can simplify the process during program execution.
Love J2EE follow Java Michael Jackson video station JSON online tools
Http://biancheng.dnbcw.info/php/360991.html pageno: 1.