News Feed

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

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

David Coallier's Blog: Namespaces has PHP 5.3 (Or the other way around)

Greg Beaver's Blog: PhpDocumentor 1.3.0 stable is released

Richard Davey\'s Blog: POP before SMTP Authentication for PHPMailer

Lukas Smith's Blog: PHP 5.3.0 stable almost released :)

Dave Marshall: Silex Controllers as Services

Community Events

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

wordpress api framework laravel laravel5 interview language voicesoftheelephpant podcast example extension community opinion introduction library version release series unittest php7

All content copyright, 2015 :: - Powered by the Solar PHP Framework