• GK & Current Affairs
  • Exam Calender
  • IQ Puzzles
  • Comics Sections
  • Login
  • Registration
  • Reffer & earn
Knowledgedunia

,

  • Home
  • Category
    • Aptitude
    • General Studies
    • Reasoning
    • Puzzles
    • Programming Language
    • Interview
    • Database
    • Networking
    • Solr
  • Interview
  • Online Test
  • General Knowledge
    • Important Days
  • Ask Now !
  • Solr
  • HR
  • Puzzles
  • Reasoning

Time:

Question Detial

  1. Home
  2. PHP
  3. Basics
  4. Difference between Require and Require_once, Include and Include_once, and Require and Include.

Difference between Require and Require_once, Include and Include_once, and Require and Include.

5 years ago 504 Views

REQUIRE()

  • The file should exist.Otherwise it will produce an Fatal error.the program cannot continue.
  • Can call same file more than once.


REQUIRE_ONCE()

  • Missing file throws Fatal Error and stops script.
  • Cannot call same file more than once.


INCLUDE()

  • Missing file throws Warning and keeps going.
  • Can call same file more than once.
  • The file is not mandatory.
  • The program will run even if there is no such a file producing a warning.


INCLUDE_ONCE()

  • Missing file throws Warning and keeps going.
  • Cannot call same file more than once.

PHP Basics

Thread Reply

Hot Questions


  • What are the advantages and disadvantages of Standard Query Parser?
  • What is Apache Solr?
  • How to Get the Size of all Tables in a database in MySQL?

  • Explain Faceting in Solr.
  • What is MVC?

Recent Comments


  • Aziz Panna on
  • Brijesh Maurya on

    What is Laravel framework?

Knowledge Dunia
 
  • Solr Interview Questions
  • Earth Day Questions
  • PHP Interview Questions
  • HR Interview Questions
  • Important Day Of The Year
  • MySQL Interview Questions
  • General Awareness Questions
  • Railway Questions
  • CakePHP Interview Questions
  • Ask Your Question Now!
  • Sports Questions
  • About us
  • Contact Us
  • Facebook
  • Twitter
  • Google Plus

© 2016 cubetodice.com. All rights reserved.

Sign Up with Facebook
Sign Up with Google

OR

MALE FEMALE

By clicking on the button "Register" you agree to be the terms of service (User Agreement)

Already Register Sing In

×
Sign In with Facebook Sign In with Google

Forgot password?