Difference between include and require

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Bunty

    Difference between include and require

    When we want to call another file in the existing file at that time we
    can use include and require both.Please tell me what's the difference
    between them?
  • sheldonlg

    #2
    Re: Difference between include and require

    Bunty wrote:
    When we want to call another file in the existing file at that time we
    can use include and require both.Please tell me what's the difference
    between them?
    Have you tried a google of "php include require difference"?

    If you want answers in this group (or any others) you have to
    demonstrate that you have done at least a modicum of homework.

    Comment

    • Michael Fesser

      #3
      Re: Difference between include and require

      ..oO(Bunty)
      >When we want to call another file in the existing file at that time we
      >can use include and require both.Please tell me what's the difference
      >between them?
      It's described in detail in the manual.

      Micha

      Comment

      • AqD

        #4
        Re: Difference between include and require

        On Sep 4, 8:23 pm, Bunty <bunty.virad... @gmail.comwrote :
        When we want to call another file in the existing file at that time we
        can use include and require both.Please tell me what's the difference
        between them?
        require throws error if the file is missing. You should always use
        require and not include.

        Comment

        Working...