Re: Require() vs Include()
| From: | Mark Maggelet | Date: | Tue, 14 Nov 2000 06:02:02 +0000 |
| Subject: | Re: Require() vs Include() | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-25147@lists.php.net to get a copy of this message | ||
On Mon, 13 Nov 2000 21:30:35 -0800 (PST), jeremy brand
(jeremy@nirvani.net) wrote:
>> 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.
In fact I've had the opposite experience:
A while back I had a problem with a php3 script that would crash
apache with a very bizarre error message. I tracked the problem down
to a require() statement, and when I changed it to include() my
problems magically went away.
I'm sure the problem is fixed now, but since that happened I never
used require() again, and don't miss it at all. I can't even think of
a hypothetical scenario where I would want to use it.
- Mark