What are the difference between include_once & Require_once?

Answers were Sorted based on User's Feedback



What are the difference between include_once & Require_once?..

Answer / udhayakumar

include() generates a warning, but the script will continue
execution but require() generates a fatal error, and the
script will stop the execution

Is This Answer Correct ?    21 Yes 2 No

What are the difference between include_once & Require_once?..

Answer / ramesh

include() generates a warning, but the script will continue
execution but require() generates a fatal error, and the
script will stop the execution or we can write PHP code for
continue execution

Is This Answer Correct ?    6 Yes 4 No

Post New Answer

More PHP Interview Questions

How can image properties be retrieved in php?

0 Answers  


Is php a case sensitive language?

0 Answers  


Name and explain five of the PHP error constants?

0 Answers  


In php, how to redirect from one page to another page?

0 Answers  


Tell me how can you pass a variable by reference?

0 Answers  






Which function Returns the time of sunrise for a given day / location in PHP.

0 Answers  


Actually am working in existing project which is developed in .net, am converting the .net into php code. am facing problem after uploading the .php in server. amgetting the error message like "The page cannot be found" but its working perfectly in local host

2 Answers  


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

0 Answers  


What are hooks in php?

0 Answers  


Tell me what is the use of explode() function?

0 Answers  


How to split a string into array using php?

0 Answers  


What is the php function that removes the last element of the array and returns it?

0 Answers  


Categories