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

What is the difference between mysql_fetch_array() and mysql_fetch_assoc()?

516


How can we check the value of a given variable is a number?

604


how can i develop forum code? any one pleale help me on this question

1516


How do I stop a php script?

492


List few sensible functions in PHP?

560






Where php language is used?

522


What is csrf mvc?

502


What does $_env mean?

563


Why do we use interface in php?

529


What is explode() in php?

535


Does php class need constructor?

475


What is the function in PHP do not return a timestamp?

563


Why session is required?

512


Who is the father or inventor of php?

575


What is the best way to test the strpos() return value in php?

526