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

What is the best practice for running mysql queries in php? Consider the risk of sql injection.

529


How to store the uploaded file to the final location?

493


Can I write php code in html file?

517


write a note on Testing the web site

1393


How to create and destroy cookies in php?

479






Is age nominal or ordinal?

496


Why we use get in php?

543


Is age interval or ordinal?

504


What is the importance of "method" attribute in a html form?

528


What is the use of final class in php?

484


Do you know what is php?

531


Does exist in php?

504


What is php and sql used for?

486


How do you use end in python?

467


What new features php7 has in store for us?

543