Whats the difference between include() and require()?

Answer Posted / priyanka

include() function generates a warning but the script
will continue execution while the require() function
generates a fatal error and the script execution will stop
after the error.

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the use of strip_tags() method?

725


What is the use of $_server["php_self"] variable?

704


How to convert a string to lowercase in php?

764


Echo is used to Display message on screen. Which is used with echo to not output the trailing newline?

778


Explain about looping in PHP?

825


What is string in php?

741


When do sessions end?

702


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

673


What are major variables in research?

735


What is php simple definition?

713


What is faster in php?

794


CWD is a type of shell variable. State Whether True or False?

801


How can I prevent sql-injection in php?

770


How to return a value back to the function caller?

742


When you want to show some part of a text displayed on an html page in red font color? What different possibilities are there to do this? What are the advantages/disadvantages of these methods?

688