webJestic.NET

Hello World (Delphi for PHP)

This is the very first and very basic “hello world” program with a few edit controls and a submit button, using Delphi for PHP.  There is nothing complicated about this application.  The entire purpose of this is to illustrate how to manipulate a Label by use of the OnClick event of a Button.

While Delphi for PHP is currently at version 2, it still has a lot of growth left.  Nevertheless, this IDE is an excellent IDE for writing and developing PHP code and applications.  Using the VCL is an option and not a requirement.  If you wish to use the VCL controls, then of course the Forms and VCL is needed.

preview image

Note: I’ve found the Delphi for PHP IDE a little picky if not delicate. I’ve had times when I’ve built this project and the button doesn’t work. I’ve discovered the reason is environment variables which define where the VCL is located in the path. The default project location is included in your path, so if you create a special folder on another drive, perhaps you too will epxerience problems with the button not being executed properly. When you “distribute” the application and it’s packages, the paths work fine. It’s only during development in the IDE and Debug Listener, where you may experience such problems.

Comments

One Response to “Hello World (Delphi for PHP)”
  1. Russ Seel says:

    Hi Michael. The videos are great, but I’m a bit confused as to what order to run them. AQlso I don’t have a copy of Delphi-PHP which I’ll request from RZ. What other software components and D/B’s do I need and how I install them plus any environmental variables needed. I’m sending this to RZ as well through the RH+ mail.

    Thnx for all u r doing!
    …russ

Speak Your Mind

Tell us what you're thinking...
and oh, if you want a pic to show with your comment, go get a gravatar!

webJestic.NET