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

Answer Posted / kedar haldikar

If the file specified with include_once() is not exist then
system displays warning where in the case of require_once()
system displays Fatal error in the client browsers window.

Is This Answer Correct ?    4 Yes 9 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is php7?

704


What is sorting php?

602


How can we set and destroy the cookie in php?

571


Tell me what does $_env means?

618


What type of errors can be occurred in php?

645






What is better .net or php?

643


Differentiate echo vs. Print statement.

623


How do we get the current session id?

635


Why use php artisan serve?

579


How does php isset work?

610


Why do we use inheritance in php?

627


What is in a cookie?

637


What is traits? How it is used in php?

634


Binary tree question - Node has numeric data (int) The function takes depth as argument and sum all the value of the node of the depth. For instance, (0) depth 0 / \ 10 20 depth 1 / \ / \ 40 50 60 70 depth 2 so if you pass get_sum(2), you would return 220 which is 40+50+60+70 (sum of depth2) write the function.

1595


What is the difference between include and require?

606