News Feed
Sections




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

DevShed:
Auto Loading Classes in PHP 5
December 04, 2007 @ 09:25:00

A new tutorial on DevShed today takes a look at a handy bit of functionality that's included with PHP5 - the automatic autoloading of classes.

As you might know, the "__autoload()" function, when used in a clever way, can eliminate almost completely the need to use the "require()/require_once()" and "include()/include_once()". [...] Now is the perfect time to move forward and start learning how to put the "__autoload()" magic function to work for you, and load your classes without having to include them manually into your PHP 5 object-oriented applications.

They show the more traditional approach with a code example (just using the require/include method) then show the difference in using a custom defined autoload function to tell the script where to find the libraries.

0 comments voice your opinion now!
php5 autload class tutorial require include php5 autload class tutorial require include


blog comments powered by Disqus

Similar Posts

PHP-GTK Community Site: GtkToolbar, GtkMenubar, and PEAR XML-RPC for geo-nick

onPHP5.com: Clickable, Obfuscated Email Addresses

The Bakery: Six New Articles/Tutorials Posted

NETTUTS.com: CodeIgniter From Scratch: Day 5 – CRUD

PHP-Coding-Practices.com: Control Your CSS Via PHP - Good Stuff!


Community Events

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


performance introduction opinion voicesoftheelephpant application community configure library conference part2 api php7 series interview symfony2 laravel podcast example release framework

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