PHP Include And Require

PHP Include And Require

PHP Include is used to add other php file into another php file before the server executes it.

There are two ways to insert php file into another

  • With include()
  • With require()

With include()

With include() function you can copy all the content of a php file and copy it to another file.If unfotunately the copy cannot done it genrates warning but the script will continue execution.

 

 


With require()

With require() function you can copy all the content of a php file and copy it to another file like include function but if the copy cannot done it genrates error and terminate the script.

PHP Include And Require

Conclusion:
So this is the difference betweenPHP Include And Require.If you like this tutorial script then share it with your community. If you have any suggestion Feel free to comment below.If you want to learn more about PHPCodeIgniterAngularJSLaraveljQuery  Web Development then daily visit PHPCodify. Sharing is Caring.

PHP Include And Require

 

Read previous post:
angularjs logo
Angularjs Cannot read property ‘$valid’ of undefined

Angularjs Cannot read property ‘$valid’ of undefined It requires a name for the form does not read from the id....

Close