Whats the difference between include() and require()?

Answer Posted / kathiresan n

You can insert the content of a file into a PHP file before
the server executes it, with the include() or require()
function.
The two functions are identical in every way, except how
they handle errors.
The include() function generates a warning but the script
will continue execution while the require() function
generates a fatal error and the script execution will stop
after the error.

Is This Answer Correct ?    9 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is mysqli php?

521


What is Mcrypt used for?

581


Do you know what is the function mysql_pconnect() usefull for?

501


Explain some most commonly use string functions in php?

503


What is php addslashes?

544






how to open & closing opening period in fico

1217


What is better .net or php?

576


What is a php session?

568


What is an abstract class in php?

478


Is php closing tag necessary?

553


What is a php class?

539


What is return value in php?

515


What is the static variable in function useful for?

533


What is the difference between get and post method in php?

498


How many escape sequences are recognized in double-quoted strings in php?

533