require() and include()

Ads

 
 

Share on Google+Share on Google+

samar
require() and include()
1 Answer(s)      6 years and 10 months ago
Posted in : PHP

hii,

What is the difference between require() and include() in php?

Ads
View Answers

October 29, 2010 at 3:21 PM


hello,

The require() statement includes and evaluates the specific file.require() results in a Fatal Error.

The include() statement includes and evaluates the specified file. include() produces a Warning.


Ads