what is the diiference

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

    what is the diiference

    Hi

    What is the difference between include and require ?

    regards
    Vijay

  • Palle Hansen

    #2
    Re: what is the diiference

    iavian wrote:
    [color=blue]
    > What is the difference between include and require ?[/color]

    Im lazy this morning, so let me copy/paste from the php manual:

    require() and include() are identical in every way except how they
    handle failure. include() produces a Warning while require() results in
    a Fatal Error. In other words, don't hesitate to use require() if you
    want a missing file to halt processing of the page. include() does not
    behave this way, the script will continue regardless. Be sure to have an
    appropriate include_path setting as well.

    Comment

    Working...