Apr 19, 2004 #1 mancroft Programmer Oct 26, 2002 267 GB include_once or require_once? Anyone know the difference between include_once "xxsql.php"; and require_once("xxsql.php"); ? Which is better? Thanks.
include_once or require_once? Anyone know the difference between include_once "xxsql.php"; and require_once("xxsql.php"); ? Which is better? Thanks.
Apr 19, 2004 #2 sleipnir214 Programmer May 6, 2002 15,350 US Not better. Different in how the two functions handle failure. include() (and include_once()), on failure, issues a warning. require() (and require_once()), on failure, issues a fatal error. This is documented here Want the best answers? Ask the best questions! TANSTAAFL!! Upvote 0 Downvote
Not better. Different in how the two functions handle failure. include() (and include_once()), on failure, issues a warning. require() (and require_once()), on failure, issues a fatal error. This is documented here Want the best answers? Ask the best questions! TANSTAAFL!!
Apr 19, 2004 Thread starter #3 mancroft Programmer Oct 26, 2002 267 GB Thanx again, sleipnir214 Upvote 0 Downvote