jCay.org

last scripts

popular scripts

top rated

search
 
search:

Advertisment

The Difference Between require() and include()

DeEnFrSp
Hits: 1057

The Difference Between require() and include()

Rating 0.0 0.0
Did you know that require() and include() work differently? Both are used for including code in another file into your program, but there is a crucial difference in how they operate when that file cannot be read which any PHP programmer needs to know about. There's also a slight difference with require() between new and older versions of PHP which this tutorial discusses too.


Platform(s): Linux, Windows, FreeBSD, Mac OSX, Sun Solaris
Date: Dec, 10 2006
Author: Sven Vdhrison, http://discomoose.org/2006/04/28/the-difference-between-require-and-include/

Ratings

Number of Ratings: 100 Votes
5     
7%
4
93%
3
0%
2
0%
1
0%
Visitor Voting Booth: Rate It!