Monday 27 August 2012

Difference between include() and require()


Hi Friends,

There are two function to include some file in your PHP script.

1)  include()
2)  require()

Both function do same thing, both are use for including some file to your PHP Code.
But basic difference is when you use include() function and if it failed to include file, it will give you worming, but if you use require() function and it failed to include file, it will show you fatal error.


So guys my advise to you that use include().

No comments:

Post a Comment