require includes code only once(on the parse), include includes code 
everytime it is called. if you have some libs and in two or more you do 
require or include of some core lib you have to use require_once or to define 
some constant and use it to check. I am sure when but require changed its 
behaviour. Before it leaded to fatal error if some the file that has to be 
required is not found. Now it works just like include (just notice or warning 
- not sure).

For more info read the docs ar : http://www.php.net/

Best regards,
Andrey Hristov
On Thursday 07 March 2002 07:25 pm, you wrote:
> I was just wondering if anyone could tell me when would be the time to
> choose require(), require_once(), or include().  I know a little bit about
> using each one, but I am just not sure if there is one that is better than
> the other in certain situations.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to