RE: [PHP] require or include ?

2002-03-28 Thread Rick Emery
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:[EMAIL PROTECTED]] Sent: Thursday, March 28, 2002 4:44 PM To: [EMAIL PROTECTED] Subject: [PHP] require or

Re: [PHP] require or include ?

2002-03-28 Thread Javier
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.

Re: [PHP] require or include ?

2002-03-28 Thread bvr
both include the file, but use require() when it is required, and include() when it's not. In the new behaviour these two make no further difference. bvr. Javier wrote: If I include for ex. common.php in a script and this script also calls common.php what should I use require or include?

RE: [PHP] require() vs include()

2002-03-15 Thread Ford, Mike [LSS]
-Original Message- From: Jim Lucas [php] [mailto:[EMAIL PROTECTED]] Sent: 15 March 2002 00:55 Plus, depending on how you are calling the file. Meaning if the file name that you are calling is a static file name or dynamic file name require() and require_once() will include a

RE: [PHP] require() vs include()

2002-03-14 Thread SHEETS,JASON (Non-HP-Boise,ex1)
They are much the same, both include a file. To quote the PHP manual require() and include() are identical in every way except how they handle failure. include() produces a Warning while require() results in a Fatal Error. In other words, don't hesitate to use require() if you want a missing

Re: [PHP] require() vs include()

2002-03-14 Thread Jim Lucas [php]
Message - From: SHEETS,JASON (Non-HP-Boise,ex1) [EMAIL PROTECTED] To: 'David McInnis' [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Thursday, March 14, 2002 3:56 PM Subject: RE: [PHP] require() vs include() They are much the same, both include a file. To quote the PHP manual require() and include

Re: [PHP] require or include

2001-11-15 Thread Mike Eheler
It all depends on the purpose. With require, the script will die on the spot if the file is not found. Also, the code will always be included in the file.. so take this example: file.php: ? echo Hello World!; ? requiretest.php: ? if (FALSE) { require('file.php'); } ? The

RE: [PHP] Require vs include

2001-03-17 Thread Boaz Yahav
Hi Check out : http://www.weberdev.com/index.php3?GoTo=get_example.php3?count=22 Sincerely berber Visit http://www.weberdev.com Today!!! To see where PHP might take you tomorrow. -Original Message- From: NGUYEN DINH Quoc Huy [mailto:[EMAIL PROTECTED]] Sent: Saturday,