Re: Require() vs Include()
| From: | jeremy brand | Date: | Tue, 14 Nov 2000 05:30:35 +0000 |
| Subject: | Re: Require() vs Include() | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-25141@lists.php.net to get a copy of this message | ||
> Generaly everyone i have know to use require(""); uses it to include
> librarys/classes and such. stuff that you definately are going to need. It
> is more stable i think.
-------------------------
Again, a good example of a misunderstanding. There is no reason why
include() is less stable than require(). Not at all.
If you definately need a file, include() works just perfect anyway --
because if the file you need isn't there, it's not like require() is
going to magically create it for you.
:)
Hopefully people will leave this thread just understanding what the
difference between include() and require() really is, not that one is
better than another, because we all know those are just oppinions.
http://php.net/require
http://www.php.net/manual/function.include.php
> CD
> _______________________________
>
> This email may contain confidential and/or privileged information for the
> sole use of the intended recipient. Any review or distribution by others is
> strictly prohibited. If you have received this email in error, please
> contact the sender and delete all copies. Opinions, conclusions or other
> information expressed or contained in this email are not given or endorsed
> by the sender unless otherwise affirmed independently by the sender.
>
> _________________________________
>
> ----- Original Message -----
> From: "Lars Torben Wilson" <torben@pinc.com>
> To: "Maxim Maletsky" <maxim.maletsky@japaninc.net>
> Cc: <Lawrence.Sheed@dfait-maeci.gc.ca>; <php-general@lists.php.net>
> Sent: Tuesday, November 14, 2000 4:18 PM
> Subject: RE: [PHP] Require() vs Include()
>
>
> > Maxim Maletsky writes:
> > > Does that mean that we can freely write to the whole mailing list (the
> whole
> > > world)
> > >
> > >
> > > DO NEVER USE REQUIRE() SINCE THERE'S INCLUDE() WHICH IS 100.00% BETTER
> >
> > Why on Earth would you want to do something like that?
> >
> > > ?
> > >
> > >
> > > I mean, in something require() is still being good, isn't it?
> > >
> > > Cheers,
> > > Maxim Maletsky
> >
> > If you have a serious problem with it, like Joe seems to :), then
> > don't use it. No problem. But there is also no reason to tell
> > everybody not to use it like that. Someone might have a valid reason.
> >
> > But in general, if you don't have a good reason to want it, and are
> > happy without it, then there is no really persuasive reason to use it.
> >
> >
> > --
> > +----------------------------------------------------------------+
> > |Torben Wilson <torben@php.net> Netmill iTech|
> > |http://www.coastnet.com/~torben š5_B×k
> > Ã{33Û!http://www.netmill.fi|
> > |Ph: 1 250 383-9735 torben@netmill.fi|
> > +----------------------------------------------------------------+
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> > For additional commands, e-mail: php-general-help@lists.php.net
> > To contact the list administrators, e-mail: php-list-admin@lists.php.net
> >
> >
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>
>