What are the difference between include_once & Require_once?

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

How do you count numbers in php?

492


What is difference between python and php?

508


Why many companies are switching their current business language to php? Where php basically used?

499


What is the difference between mysqli_fetch_object() and mysqli_fetch_array()?

513


What is overloading and overriding in oop?

552






what is session_set_save_handler in PHP?

607


How to convert numbers to strings in php?

515


How does php isset work?

524


How can we extract string "pcds.co.in" from a string "https://info@pcds.co.in" using regular expression of php? More on reg can you explain

509


Why does php need server?

517


Is php free to use?

528


Explain include(), include_once, require() and require_once?

547


How does the identity operator === compare two values?

666


Difference between mysql_connect and mysql_pconnect?

502


Is learning php easy?

524