Jump to content

what is the difference between include and require_once?


frijole

Recommended Posts

include_once will throw a warning message if you try and include the same file more then once.

 

require will stop script execution if it fails to load the file. Personally I always use require, as my scripts cannont run if they do not have the included file.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.