FRIHOST FORUMS SEARCH FAQ TOS BLOGS COMPETITIONS
You are invited to Log in or Register a free Frihost Account!


Require and Include





asiddle423
What are the differences between include() and require()
DanielXP
i din't think there is but you can require once
BlackSkad
There is none if everything goes fine. But on failure, include just produces a Warning and the script just continues. Require, at the other hand, produces a Fatal Error, which halts the script.
You can use both require_once and include_once to make sure that a file is included only once (to prevent redeclaring of functions, etc).
More info on php.net

BlackSkad
Related topics
can a virus cause unrecoverable damage to HD?
How to burn CLONEs
useless posts
Mail with PHP (Simple Tutorial)
The downfall of american society
Do we support php include and/or SSI?
Choosing Between Free or Paid Web Hosting
Bluetooth
[PhP] News Posting Tutorial (code, actually ^^')
Frankfurt Motor Show, 2005
what are the differents between require and include
[Resolved] Object Orientated PHP errors
INCLUDE(FILENAME) -------
long php pages or include
Reply to topic    Frihost Forum Index -> Scripting -> Php and MySQL

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2011 Frihost, forums powered by phpBB.