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

Answer Posted / rahul anand

when we use require_once then if the file is not existed
then it will show the fetal error and will not execute the
instruction written under the require_once function. In the
case of include_once() if the file does not exist then it
will show the error message and also show the statements
written under the include_once function.

Is This Answer Correct ?    16 Yes 11 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How error handling is being handled by php?

795


What is the difference between $var and $$var?

781


What do the initials of php stand for?

812


What is the use of nl2br() in php?

802


What are the differences between php constants and variables?

735


List some features of php that are deprecated in php

702


Is php faster than nodejs?

713


How to strip whitespace (or other characters) from the beginning and end of a string?

702


Describe session in php.

743


Why is php used for web development?

748


Difference between mysql_connect and mysql_pconnect?

726


How do you display the output directly to the browser?

681


Tell me how can we display information of a variable and readable by human with php?

814


What are the functions to be used to get the image's properties (size, width and height)?

759


How to create a table using php?

783