Aryan PrajapatKnowledge Contributor
Explain require() and include() function in php.
Explain require() and include() function in php.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Questions | Answers | Discussions | Knowledge sharing | Communities & more.
The Require() function can also be used to transfer data from one PHP file to another. If there are any errors, require() function issues a warning and a fatal error, terminating the script’s execution.
Include() is a PHP function that inserts data from one PHP file into another PHP file. If an error occurs, the include() function issues a warning but does not stop the script from running.