Click me
Transcribed

Include() vs Require() in PHP

Problem Solver KEY DIFFERENCES Include ( ) Include ( ) doesn't stop the execution of the PHP script when an error occurs . Include ( ) does not throw fatal error Should be used when we want to keep running the PHP script despite any error in existing code VS Require ( ) Require ( ) stops the execution of the PHP script when an error occurs . Require ( ) throw fatal error & prevent further execution of code Use when we want to shut down the PHP script if any error occurs a beproblemsolver.com ×

Include() vs Require() in PHP

shared by BeProblemSolver on Oct 15
0 views
0 shares
0 comments
If you're not sure whether to use include() or require() in your PHP code, you're not alone. Here's a quick rundown of the differences between the two functions and when you should use each one.

Source

Unknown. Add a source

Category

Technology
Did you work on this visual? Claim credit!

Get a Quote

Embed Code

For hosted site:

Click the code to copy

For wordpress.com:

Click the code to copy
Customize size