Re: require or include ?
| From: | Javier | Date: | Fri, 29 Mar 2002 00:33:54 +0000 |
| Subject: | Re: require or include ? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-90617@lists.php.net to get a copy of this message | ||
If I include for ex. common.php in a script and this script also calls
common.php what should I use require or include?
On Thu, Mar 28, 2002 at 04:44:04PM -0600, Rick Emery wrote:
> require() is used when you want the file included regardless of whether any
> information is used from it. include() may be conditional.
>
> -----Original Message-----
> From: javier [mailto:javier@leeloo.mine.nu]
> Sent: Thursday, March 28, 2002 4:44 PM
> To: php-general@lists.php.net
> Subject: [PHP] require or include ?
>
>
> When should I use require or include?
> I read that include copies the content from the file to the script that
> is calling it.
> And require is like #include in C.
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php