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
What's the difference between accessing a class method via -> and via ::?
What is the difference between $var and $$var?
Define urlencode() and urldecode() used in php?
What are new features in php 7?
What is sorting php?
What is the advantage of runtime polymorphism?
What is the use of stripslashes in php?
How can we encrypt the password using php?
where do we use htaccess?
How to increase the execution time of a PHP script?
Differences between get, post and request methods ?
What is the purpose of break and continue statement?
How is it possible to remove escape characters from a string?
What is compact function php?
What is difference between mysqli and mysql?