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

Answer Posted / shanawar

Both used for connecting to the database. but the main
difference b/w them if we r using include()and the file is
not found then a warring will be occure and script will be
execute.. But in the case of require() a error will occure
and script will be helt........................ Shanawar

Is This Answer Correct ?    1 Yes 12 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to check a variable is array or not in php?

741


Tell me what is pear?

760


Define anonymous classes in php7?

743


Can I run php without xampp?

694


What is the different between count() and sizeof() in php?

716


What is php written in?

747


How can I prevent sql-injection in php?

778


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

848


What is sorting php?

702


Php being an open source is there any support available to it?

826


How can MYSQL functions be available with PHP?

756


Tell me what is the importance of "action" attribute in a html form?

743


What is overloading and overriding in php?

806


How to run the interactive php shell from the command line interface?

785


What is the content of /etc directory?

769