Gmail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
Require() vs Include()
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  Messages 26 - 30 of 30 - Expand all  -  Translate all to Translated (View all originals) < Older 
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Andi Gutmans  
View profile  
 More options Nov 14 2000, 11:44 am
Newsgroups: php.general
From: a...@zend.com (Andi Gutmans)
Date: 14 Nov 2000 08:27:46 -0800
Local: Tues, Nov 14 2000 11:27 am
Subject: RE: [PHP] Require() vs Include()
If include() fails the return value is false.

Andi

At 21:22 13/11/00 -0800, jeremy brand wrote:

---
Andi Gutmans <a...@zend.com>
http://www.zend.com/

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-general-unsubscr...@lists.php.net
For additional commands, e-mail: php-general-h...@lists.php.net
To contact the list administrators, e-mail: php-list-ad...@lists.php.net


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Myke Hines  
View profile  
 More options Nov 14 2000, 1:45 pm
Newsgroups: php.general
From: My...@WebSite.WS (Myke Hines)
Date: 14 Nov 2000 10:37:47 -0800
Local: Tues, Nov 14 2000 1:37 pm
Subject: RE: [PHP] Require() vs Include()
Wasn't their an issue in using require/includes in classes, if's, whiles, or
something?
One would always be included where as the other would only be included if it
meet the condition it was in.  Sorry so vague.


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
"Duke Normandin"  
View profile  
 More options Nov 14 2000, 1:45 pm
Newsgroups: php.general
From: 01031...@3web.net ("Duke Normandin")
Date: 14 Nov 2000 10:32:29 -0800
Local: Tues, Nov 14 2000 1:32 pm
Subject: RE: [PHP] Require() vs Include()
On 14 Nov 00 at 11:32, php-general-digest-help@lists wrote:

Is my paraphrasing correct?

require() is "absolute" -- so don't use it in a conditional statement
because it makes no sense (to me anyway)

require() is "absolute" -- make sure that what you "require" exists where
it's suppose to be, otherwise the script fails "hard".

include() is *not* absolute -- use it in a conditional

include() failures do so "softly" - returns garbage, e.g.

Up to php4.0.1 require() had the edge on speed -- none to very litle with
php4.0.2+.

-duke
Calgary,Alberta, Canada

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-general-unsubscr...@lists.php.net
For additional commands, e-mail: php-general-h...@lists.php.net
To contact the list administrators, e-mail: php-list-ad...@lists.php.net


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Maxim Maletsky  
View profile  
 More options Nov 14 2000, 9:12 pm
Newsgroups: php.general
From: maxim.malet...@japaninc.net (Maxim Maletsky)
Date: 14 Nov 2000 18:05:45 -0800
Local: Tues, Nov 14 2000 9:05 pm
Subject: RE: [PHP] Require() vs Include()

not since the version 4.0.2 as Zeev says...

now require() and include() are *exactly* the same except that require()
exits the script prematurely on a failure. Everything else is identic.

Cheers!

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-general-unsubscr...@lists.php.net
For additional commands, e-mail: php-general-h...@lists.php.net
To contact the list administrators, e-mail: php-list-ad...@lists.php.net


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Maxim Maletsky  
View profile  
 More options Nov 14 2000, 10:12 pm
Newsgroups: php.general
From: maxim.malet...@japaninc.net (Maxim Maletsky)
Date: 14 Nov 2000 18:50:22 -0800
Local: Tues, Nov 14 2000 9:50 pm
Subject: RE: [PHP] Require() vs Include()
As I already tried to mention in here:

Now (since the PHP4.0.2) require() and include() are working in the EXACTLY
same way.
the only difference remains the premature exit of the file on a failure of
require().

It is what Zeev wrote in his previous email on my thread.

Cheers,
Maxim Maletsky.


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages < Older 
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google