NYCPHP Meetup

NYPHP.org

[nycphp-talk] Differences btw include and require ?

Christopher R. Merlo cmerlo at turing.matcmp.ncc.edu
Fri May 9 10:24:18 EDT 2003


On 2003-05-09 09:40 -0400, Bhulipongsanon, Pinyo <Pinyo.Bhulipongsanon at usa.xerox.com> wrote:

> What are the differences?  Personally, I always use include_once().

Basically, if you try to include a file that doesn't exist, you get a
warning, but the PHP file keeps getting processed.  If you try to
require a file that doesn't exist, processing stops.

-- 
cmerlo at turing.matcmp.ncc.edu        http://turing.matcmp.ncc.edu/~cmerlo

Computers are useless.  They can only give you answers.
 -- Picasso



More information about the talk mailing list