What is the exact Diff. between include_once() and
require_once() in PHP?

Answer Posted / izhar aazmi

Include => Include the said file during execution...
Require => Require the said file for the execution...

As in english "require" mandatory inclusion is expected and
hence, on failure execution shall halt with fatal error...

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How can you get web browser’s details using PHP?

606


What is die in php?

634


What is the scope of a variable defined in a function?

628


Explain whether it is possible to share a single instance of a memcache between multiple php projects?

589


What is the use of "echo" in php?

607






What is new keyword in php?

617


How to track no of user logged in?

701


Explain me what is the importance of "method" attribute in a html form?

587


What is the functionality of md5 function in php?

663


How to convert strings in hex format?

636


Do while loops php?

605


Is null in php?

618


What is the output of the following php code?

565


Explain php explode() function.

635


What is rtrim php?

639