News Feed
Jobs Feed
Sections




News Archive
DevShed:
The Autoload Magic Function in PHP 5
June 23, 2009 @ 07:56:57

DevShed has posted the latest article (the last) in their series looking at the "magic functions" that PHP has to offer. This time they take a closer look at the autoload functionality.

PHP 5 offers yet another magic method that can be extremely useful for loading classes automatically, without having to use explicitly any "include()/include_once()" or "require()/require_once()" function. As the article's title suggests, I'm talking specifically about the "__autoload()" function, which deserves a deeper analysis.

Their example shows how to define the __authoload method for your application to load in libraries as they're needed, without having to specifically define them.

2 comments voice your opinion now!
tutorial function magic autoload


blog comments powered by Disqus

Similar Posts

HowToForge.com: LAMP Installation On Ubuntu 6.06 For Linux Noobs

ParanoidFerret.com: Flex & PHP Tutorial - Transmitting data using JSON

Community News: PHPKnowHow.com - PHP in Plain English

PHPBuilder.com: Validating PHP User Sessions

PHPMaster.com: Avoid the Original MySQL Extension, Part 2


Community Events











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


phpunit symfony2 interview conference database podcast rest usergroup community unittest introduction development functional testing release framework opinion series language zendframework2

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