News Feed
Sections




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

TotalPHP:
Using an autoload function to make your life easier
October 02, 2008 @ 08:46:59

On the TotalPHP blog there's a recent post introducing you to a feature in PHP5 that can make life much easier - autoload.

In PHP 5 you can make your life a lot easier by writing an autoload function. This function will automatically load your classes, so you do not need to repeatedly include classes on every page.

Included are examples of it in action - both a simple definition and as it might be used in an application to conditionally load a class from multiple locations.

0 comments voice your opinion now!
autoload function php5 load class


blog comments powered by Disqus

Similar Posts

SitePoint PHP Blog: Shared Hosts and PHP5 Upgrades

Internet Super Hero Blog: MySQL native driver for PHP: mysqlnd-5.0.1-beta available

Sebastian Bergmann's Blog: PHPUnit and Software Metrics

Dotvoid.com: Loosing market share with PHP 4

HowToForge.com: Running Apache2 With PHP5 And PHP4 At The Same Time


Community Events

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


podcast list community introduction laravel yii2 api opinion programming application example php7 composer part2 framework series interview symfony language project

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