What are the differences between require and include,
include_once?

Answer Posted / tina

require - including a file/page ,if file doesn't exist,then
it gives error and doesn't execute.

include-including a file/page,if file doesn't exit,then it
gives warning and begin to execute.

include_once-including file/page, if it didn't been already
included,it includes else it won't.

Is This Answer Correct ?    41 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Echo is used to Display message on screen. Which is used with echo to not output the trailing newline?

810


What does namespace mean in php?

795


How to invoke a user function?

778


What are the benefits of using php and mysql?

739


How many ways to include variables in double-quoted strings in php?

800


How to reset/destroy a cookie in php?

744


What are PHP Magic Methods/Functions. List them.

783


Is empty function c++?

734


What is php and features of php?

670


What is the basic function to search files for lines (or other units of text) that contain a pattern.

794


What is prepared statement in php?

824


How can we submit a form without using submit buttons?

757


What are the Formatting and Printing Strings available in PHP?

805


What is explode() in php?

777


What is php destruct?

738