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

When do you use define() and when do you use const. What are the main differences between those two?

575


Tell me how to initiate a session in php?

549


Does https prevent csrf?

519


Tell us why did you choose this particular career path?

522


What type of language is php?

517






Explain Booleans in PHP?

630


How to join multiple strings into a single string?

523


what the new feature add in php 7.2?

537


What are php parameters?

527


What are soundex() and metaphone() functions in php?

478


Explain some of the php array functions?

578


Which functions are used to remove whitespaces from the string?

614


What is difference between mysql_fetch_array and mysql_fetch_assoc?

495


Which software is used to run php programs?

522


What is pdo classes?

564