What are the differences between require and include?



What are the differences between require and include?..

Answer / Anuj Awasthi

"Both require and include in PHP are used to include external files. The main difference is that if an error occurs while executing a file using require, it will cause the script to stop executing immediately. With include, the script will continue to execute after the error has occurred."

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More PHP Interview Questions

Without using forms and hidden variables, how to send variables from a PHP script to another URL using POST method?

2 Answers  


Why super () is used in java?

1 Answers  


How many keywords are there in php?

1 Answers  


Hi this is amul jani here, i complied my graduation in B.com stream.. but as career i looking for PHP language.. to get shape my career. so is that possible to enter in IT world.. for me how much scope of develop my career in this field.. amul jani

1 Answers  


How to calculate the difference between two dates using php?

0 Answers  


if you run the app program all vendor open items are cleared but is it possible to reverse the again again open items please tell me the answer

0 Answers   Yash Technologies,


i got 2 year backs in my MCA,i am 28 year guy, presently learning PHP, can i get the job & on facing the interview wht i will answer out for that?? (experience in as a 1.5yr System analyst after graduation)

0 Answers  


Define soundex()?

1 Answers  


how to upload more than 50 mb? i tried but session was expired....certain time .....i was set session duration three days .... how to rectified? if any one know that post ur answer as soon as possible?already i was increase php.ini but not working......

2 Answers  


Why framework is used in php?

1 Answers  


How would you impletement download and upload a file in php

2 Answers   A1 Technology,


find highest salary

8 Answers  


Categories