What is the difference between include and require?



What is the difference between include and require?..

Answer / Bahoran Singh

The main difference between 'include' and 'require' is that 'require' will issue a fatal error if it can't find the included file, whereas 'include' will give a warning and continue execution.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More PHP Interview Questions

What changes I have to do in php.ini file for file uploading?

1 Answers  


What is php call function?

1 Answers  


Can we use onclick in submit button?

1 Answers  


What is the difference between $name and $$name?

1 Answers  


What are the difference between include_once & Require_once?

2 Answers  


Does cors prevent csrf?

1 Answers  


How be the result set of mysql handled in php?

1 Answers  


how to do connectivity of 2 dbs in PHP script?

3 Answers   TCS,


Tell me what does accessing a class via :: means?

0 Answers  


What is $_ post in php?

1 Answers  


Write a program using while loop?

0 Answers  


How is it possible to cast types in php?

1 Answers  


Categories