News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Vidyut Luther's Blog:
Difference between "require()" and "include()" in PHP
January 05, 2006 @ 06:56:33

On his blog, phpcult.com, Vidyut Luther talks about the difference between require and include in PHP.

This should be well known, and people should be aware as to why they are using either or. But, I've noticed lately that a lot of people new to PHP or programming are not aware of the difference. Depending on what you need you, need to decide what the differences are.

It's a short post, but for someone just getting into PHP, it's some handy information to have. He looks at both functions and gives what they're good for. He does throw in a few caveats, though - including an issue with parse errors in included files pre-PHP 4.3.5...

0 comments voice your opinion now!
different include require fatal error warning different include require fatal error warning


blog comments powered by Disqus

Similar Posts

Matthew Weir O'Phinney's Blog: Zend_Layout and Zend_View Enhanced components now in core

Jani Hartikainen's Blog: Zend Framework components as separate zips from the main distro? Sure!

Vidyut Luther\'s Blog: Difference between \"require()\" and \"include()\" in PHP

Mike Purcell's Blog: PHPUnit - Constant Already Defined - -process-isolation

Ole Markus' Blog: Catching fatal errors in PHP


Community Events





Don't see your event here?
Let us know!


configure tool conference api symfony composer opinion version language laravel framework release unittest interview community introduction list series voicesoftheelephpant podcast

All content copyright, 2015 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework