Re: include and require

From: Date: Sun, 02 Jul 2000 17:42:19 +0000
Subject: Re: include and require
Groups: php.general 
Request: Send a blank email to php-general+get-4375@lists.php.net to get a copy of this message
well, you can use include() rather than require() right ? why you use require() ? -----Original Message----- From: scottrus@ipass.net <scottrus@ipass.net> To: Eris Ristemena <ste94034@stttelkom.ac.id> Cc: php-general@lists.php.net <php-general@lists.php.net> Date: Monday, July 03, 2000 12:31 AM Subject: Re: [PHP] include and require >Eris - > > >I have a site that has an auto_append / auto_prepend header and footer. To keep >the header managable I have a require(sitefunctions.php) statment which >allows me to keep all site wide functions out of the header file. Using require >here makes sense since I always want the file, regardless of whatelse is going >on. > >For specific pages I might include() additional functions but only if needed >by the code. > >-- Scott

« previous php.general (#4375) next »