Feeds

Small, awkward and looking for love: Delphi for PHP 2.0

Dreams of past Windows glory

Build a business case: developing custom apps

Although there are a generous range of controls on offer, making full use of them is a challenge thanks to the sketchy documentation. This has improved since version 1.0, but remains inadequate. The sample applications are rudimentary. The quality of the VCL for PHP is uneven. That's partly due to the inclusion of components from various sources (another example is the Qooxdoo Ajax framework used for the DBGrid), and partly because even in version 2.0 the product still seems rushed, with TODO comments scattered liberally through the library.

A snag with the first Delphi for PHP was the difficulty in mixing HTML and PHP code in a form, thanks to the way the VCL works. Each component is a class that dumps its contents to output at runtime. The layout of controls on a page is stored in a separate XML resource file, which is loaded as part of the initialization sequence.

Delphi for PHP 2.0 includes a new unit called a templated form, which does let you add HTML code directly. Even so, an application written in Delphi for PHP is heavily hooked into the VCL for PHP, and code will not be easy to migrate to any other framework.

Concerns over the quality of the VCL for PHP, and whether it has a long-term future, might deter those considering major projects using this product. Perhaps it is more suitable for applications that are small, quick and simple, a role it could fill nicely if only the documentation and tutorials were improved.

Debugging in Delphi for PHP 2.0

Debugging with Nusphere debug listener

Finally, it is a shame that the IDE is Windows-only; it would make sense for CodeGear to do what it has done with JBuilder and move Delphi for PHP to Eclipse. Maybe this will come in time with Embarcadero, given CodeGear was rather stretched for resources as the unwanted subsidiary of Borland.

This has the feel of a product with good potential, but under-resourced by its developers. There are better PHP libraries out there, such as Zend Technologies' Framework, which leaves CodeGear's product occupying a small and awkward niche.®

Boost IT visibility and business value

More from The Register

next story
The Return of BSOD: Does ANYONE trust Microsoft patches?
Sysadmins, you're either fighting fires or seen as incompetents now
Microsoft refuses to nip 'Windows 9' unzip lip slip
Look at the shiny Windows 8.1, why can't you people talk about 8.1, sobs an exec somewhere
Intel's Raspberry Pi rival Galileo can now run Windows
Behold the Internet of Things. Wintel Things
Linux Foundation says many Linux admins and engineers are certifiable
Floats exam program to help IT employers lock up talent
Microsoft cries UNINSTALL in the wake of Blue Screens of Death™
Cache crash causes contained choloric calamity
Eat up Martha! Microsoft slings handwriting recog into OneNote on Android
Freehand input on non-Windows kit for the first time
Linux kernel devs made to finger their dongles before contributing code
Two-factor auth enabled for Kernel.org repositories
prev story

Whitepapers

Implementing global e-invoicing with guaranteed legal certainty
Explaining the role local tax compliance plays in successful supply chain management and e-business and how leading global brands are addressing this.
7 Elements of Radically Simple OS Migration
Avoid the typical headaches of OS migration during your next project by learning about 7 elements of radically simple OS migration.
BYOD's dark side: Data protection
An endpoint data protection solution that adds value to the user and the organization so it can protect itself from data loss as well as leverage corporate data.
Consolidation: The Foundation for IT Business Transformation
In this whitepaper learn how effective consolidation of IT and business resources can enable multiple, meaningful business benefits.
High Performance for All
While HPC is not new, it has traditionally been seen as a specialist area – is it now geared up to meet more mainstream requirements?