 | News Feed |
 | Jobs Feed |
Sections
|
| feed this: |  |
PHPImpact Blog: Scalable and Flexible Directory Structure for Web Applications
by Chris Cornutt August 11, 2008 @ 11:17:30
In this new post on the PHP::Impact blog, Federico looks at some examples of directory setups for web apps that can help to make them both scalable and flexible.
Designing a modular and component-based directory structure for your Web applications can seem like an easy task. If your system is small, it may seem logical to go with the simplest design possible, but if there's anything more time consuming and complex than developing a new directory structure design, it's trying to redesign an existing system that wasn't developed with growth in mind.
He breaks it up into a few different topics that can be applied where needed to keep the application in check:
- Consistency
- Scalability and Flexibility
- Single Application
- Multi-application
- Naming Conventions
- Versioning
- Proposed Structure
voice your opinion now!
scalable application flexible directory structure
Builder.com.au: How do I...recursively scan directories with PHP's DirectoryIterators?
by Chris Cornutt June 18, 2008 @ 07:55:21
Builder.com.au has a new tutorial posted today talking about the use if Iterators (from PHP's SPL) to recurse down through directories on your local drive.
One of PHP5's most interesting new features is the addition of Iterators, a collection of ready-made interfaces designed to help in navigating and processing hierarchical data structures. These Iterators significantly reduce the amount of code required to process an XML document tree or a file collection.
They give three examples - two basic ones showing a simple use of the DirectoryIterator and RecursiveDirectoryIterator and another slightly more complex one showing how to get information from the recursive iteration as it goes down.
voice your opinion now!
directoryiterator iterator recursive directory example code
Lars Strojny's Blog: New magic constant in PHP 5.3
by Chris Cornutt February 22, 2008 @ 15:02:00
In this new blog post today, Lars Strojny talks about a new magic constant that will be joining its brothers in the upcoming PHP 5.3 release - __DIR__.
In PHP 5.3 there will be another magic constant __DIR__. [...] To allow this, the internal function php_dirname() has been moved in the Zend Engine and is now called zend_dirname(). Nevertheless an alias still exists.
__DIR__ will join the other constants (like __LINE__ and __FUNCTION__) to help give the currently running script a little introspection for things like its filename, what class it's currently in and now, what directory the file currently lives in.
voice your opinion now!
dir magic constant directory php5 new
Evert Pot's Blog: PHP WebDAV Integration Library
by Chris Cornutt December 13, 2007 @ 11:17:00
Evert Pot has posted about a library he's creating to integrate WebDAV support with PHP and make things simpler for those needing to access the shares.
I intend to make this library as easy as possible to use, without making it a black-box-like system. Focus will not be on everything WebDAV could possibly provide, but instead on the features that are actually supported by the operating systems.
His goal is to make it as simple as making a 'File' and 'Directory' class to interface with the remote system and has two things he's deliberating on as far as features to include in the library - support for the custom properties WebDAV allows and the ability to lock files and directories.
If you'd like to check out the current progress of the library, check out its page on the Google Code site (as well as this discussion group he's set up).
voice your opinion now!
webdav library interface file directory property lock webdav library interface file directory property lock
|
Community Events
Don't see your event here? Let us know!
|