+ Reply to Thread
Results 1 to 4 of 4

Thread: what is the difference between include() and require()

  1. #1
    websteralex is offline x10Hosting Member websteralex is an unknown quantity at this point
    Join Date
    Mar 2009
    Posts
    3

    what is the difference between include() and require()

    well i just learn that the both do the same but what is the difference?

  2. #2
    TheMan177 is offline x10 Sophmore TheMan177 is an unknown quantity at this point
    Join Date
    Jan 2008
    Posts
    179

    Re: what is the difference between include() and require()

    Error handling is performed differently. If the include() function can not find the file you’ve specified, it’ll throw a warning and execution of the script will continue. The require() function will throw a fatal error, which will halt execution all together.

    The php.net documentation would be good for further reading on the include and require (as well as include_once and require_once) functions.

  3. #3
    lordskid is offline x10Hosting Member lordskid is an unknown quantity at this point
    Join Date
    Mar 2008
    Posts
    41

    Re: what is the difference between include() and require()

    theMan177 nice SQL statement below.

  4. #4
    websteralex is offline x10Hosting Member websteralex is an unknown quantity at this point
    Join Date
    Mar 2009
    Posts
    3

    Re: what is the difference between include() and require()

    Quote Originally Posted by TheMan177 View Post
    Error handling is performed differently. If the include() function can not find the file you’ve specified, it’ll throw a warning and execution of the script will continue. The require() function will throw a fatal error, which will halt execution all together.

    The php.net documentation would be good for further reading on the include and require (as well as include_once and require_once) functions.
    thx dude. i always use include and never know what require does.

+ Reply to Thread

Similar Threads

  1. php ? include require
    By dharmil in forum Scripts & 3rd Party Apps
    Replies: 20
    Last Post: 08-27-2011, 07:32 PM
  2. Changing Ports in XAMPP
    By Wizet in forum Computers & Technology
    Replies: 8
    Last Post: 01-31-2009, 12:21 AM
  3. Php include?
    By limelight987 in forum Programming Help
    Replies: 3
    Last Post: 06-17-2008, 04:29 AM
  4. Xbox 360 May Not Include Hard Drive?
    By subvertman in forum Gamer's Lounge
    Replies: 13
    Last Post: 08-18-2005, 11:42 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers