News Feed
Sections




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

DevShed:
Building Loader Apps in PHP
May 28, 2009 @ 09:37:51

In this first part of a new series in application development, DevShed looks at building a loader for various resources inside your app.

Loading sources on the fly is one of the most common tasks that PHP programmers have to tackle during the development of web applications. This typical situation must be faced independently of the scale of the programs being created. This means a loader mechanism must be developed.

Their basic loader class uses a call to a load() method to do two things - check to ensure that a file exists and, if it does, include it (technically a require_once). They also put a bit of exception handling around it to help catch any errors thrown on the include.

0 comments voice your opinion now!
include loader tutorial


blog comments powered by Disqus

Similar Posts

PHPBuilder.com: Using XML - Part 6: Validation

Cory Borrow's Blog: Creating thumbs from textfiles with PHP and GD

WaxJelly Blog: Using PHP to make a MySQL "abstraction layer"

WebReference.com: User Personalization with PHP: The Home Page

Zend Developer Zone: Build an Enterprise-Grade PHP Stack with Zend Server 5.0 and Oracle 11g


Community Events

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


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

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