Difference between include() and require()
Moderator: General Moderators
-
php_wiz_kid
- Forum Contributor
- Posts: 181
- Joined: Tue Jun 24, 2003 7:33 pm
Difference between include() and require()
What's the difference between include() and require()? Thanks.
include() will just give a warning if the file can't be opened for some reason, but continue executing. require() will actually halt execution of the script. Here's the manual page. Look at the paragraph starting with " require() and include() are identical in every way except how they handle failure".