Go Back   Access World Forums > Apps and Windows > Web Design and Development > PHP & MySQL

Thread Tools Rate Thread Display Modes
Old 05-20-2013, 11:06 PM   #1
Newly Registered User
Join Date: May 2013
Posts: 14
Thanks: 0
Thanked 3 Times in 1 Post
preetisoft2 is on a distinguished road
differences between require and include

What are the differences between require and include, include_once and require_once?

preetisoft2 is offline   Reply With Quote
Old 01-11-2014, 08:17 AM   #2
PHP Guru
Join Date: Dec 2012
Location: Delaware
Posts: 58
Thanks: 2
Thanked 8 Times in 8 Posts
GSSDevelopment is on a distinguished road
Sorry for the late reply

Include will attempt to include a file you specify. If it doesn't exist, the script will continue, giving a warning.

Require will do the same thing, but if the file doesn't exist, it will halt the script.

The _once modifiers mean that it will attempt to include the file only if it hasn't already been included. The difference between require_once and include_once is the same as noted above.

I couldn't think of anything to put for a signature... Noah @ GSS Development by JNA Associates
GSSDevelopment is offline   Reply With Quote

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Require Help Kill_Switch General 3 07-04-2009 08:01 PM
What are the differences in MDB and ADP? Ashfaque General 5 03-03-2005 11:22 AM
Differences between DAO & ADO o1110010 Modules & VBA 6 03-18-2004 09:32 PM
Highlighting differences philniceday Forms 0 07-19-2003 01:43 PM
differences in functions timeh Modules & VBA 1 01-23-2003 06:39 AM

All times are GMT -8. The time now is 07:53 AM.

Microsoft Access Help
Modules & VBA
Theory & Practice
Access FAQs
Code Repository
Sample Databases
Video Tutorials

Featured Forum post

Sponsored Links

Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
(c) copyright 2017 Access World