HomeDelphi-PHP Forums

Archive for the ‘Tutorials’ Category

May
28

Noam Rachmany has posted 14 Delphi for PHP videos on YouTube. Check them out!

Style Sheets, Page Controls, Menus, and other UI components

Custom style sheet css example
Basic authentication control example
Explanation for parent properties example
Explanation for scrollbar example
Window example
Mainmenu example
PageContol example
Explanation for Buttonview example
Explanation for button example

Working with MySQL

MySQL query sample
MySQL masterdetail sample
MySQL dbevent sample
MySQL create oscommerce database

Regards,
Delphi-PHP

Sep
07

Just to let you know, my tutorial videos are now on Youtube … not the best quality but hey, it’s better than nothing ;)

Check out the videos here:

How to convert an existing web application to use AJAX
http://www.youtube.com/watch?v=E2UT8u5CvYE

How to update a MySQL database using AJAX
http://www.youtube.com/watch?v=zJjvn77i-wU

More on the way soon!

Regards,
Delphi-PHP

Sep
04

Hi,

For all those people who are having trouble getting the DB Repeater VCL component to work, here is a great tutorial video created by TimH (Tim Hayes) which takes you step by step through using it to display records in a mySQL database.

Check it out here: http://www.delphi-php.net/videos/tutorials/dbrepeater/
Tutorial notes (PDF format) can be found here: http://www.delphi-php.net/videos/tutorials/dbrepeater/DBRDemo.pdf

Regards,
Delphi-PHP

Jul
29

I’ve just finished creating my second screencast tutorial! :)

This Delphi for PHP tutorial shows you step by step how to create a basic Delphi for PHP web application and then convert it in to a modern AJAX web application.

To view the video follow this link: Delphi4PHP and AJAX Tutorial

Again, it’s always a good idea to have the latest VCL4PHP release, so go HERE and download the latest version!

Anyway, check out the video and let me know what you think?

Regards,
Delphi-PHP

Jul
14

I’ve just finished creating my first screencast tutorial! :)

This Delphi for PHP tutorial shows you step by step how to create a Delphi for PHP web application to update a MySQL database using AJAX.

Asynchronous JavaScript and XML (Ajax) is built around the XMLHTTP Request Object (XHR) which forms part of the XML Document Management Model (XML DOM). This object is the core of the Ajax model and it allows JavaScript to access either XML or XHTML documents. The advantage of this model is that it allows HTTP requests to be made to the server WITHOUT refreshing the web page.

To view the video follow this link: MySQL and AJAX Tutorial

I had a lot of problems creating the tutorial with older versions of the VCL for PHP …. The version you need to use is version 65.

This version has fixed some renderer problems with the DBGrid component which this tutorial uses. To get this latest version of the VCL click here.

Check it out and let me know what you think?

Regards,
Delphi-PHP

Apr
26

Delphi for PHP comes with an example web application showing you how to use Google Maps in your projects. Unfortunately this web application does not work straight out of the box. You have to install the Google Components Package first.

To do this, go into the Installed Packages dialog box which is found by going to Component->Packages… on the main menu. Click on the Add button and locate the file called \CodeGear\Delphi for PHP\1.0\vcl\google\google.package.php :

When you have clicked on the Open button, you should see the Google Components package listed in the Installed Packages dialog box like so:

When you have done this you can open up the test Google Maps PHP file which is located at this location: \CodeGear\Delphi for PHP\1.0\vcl\google\maps\test\testmaps.php

.. And that’s it, the test application for Google Maps should be up and running. Have fun with it!!

Regards,
Delphi-PHP

Apr
16

Are you sick and tired of always having to resize and arrange the Dephi for PHP IDE just the way you like it everytime it starts? Well you may want to ‘Save’ your desktop so you never have to again!

CodeGear have included what they call a Desktops quick launch toolbar in Delphi for PHP it’s visiable by default, here’s an image of the mouse pointer of the ‘Save Desktop’ button:

If you don’t see the Desktops quick launch toolbar simply right click anywhere on the main menu and make sure Desktops is checked:

Have fun !!!!

Regards,
Delphi-PHP

Apr
04

I’ve been playing around with Delphi For PHP and discovered an issue, it’s not really with Delphi For PHP but the way Javascript accesses files. When you are developing a project, you may see the following warnings in your browser:

Looking further in to it, you will noticed it thinks that QX is undefined:

You may also noticed that features of your web application which use javascript or Ajax simply don’t work or don’t even show up on the webpage.

This error occurs if your projects are stored on a different drive than Delphi for PHP. This issue is a browser, not a Delphi for PHP issue, and is a security limit to avoid javascript cross drives.

The only way to fix this is to move or re-save your project files to the same drive that Delphi For PHP is installed on. A pain I know, but I guess it’s just something we are going to have to live with…

Regards,
Delphi-PHP

Apr
04

Just came across a great article written by Jim Tierney on developing components in Delphi For PHP. Jim works for CodeGear as a principle Engineer working on the BDS development team.

In his article he details how he went about creating a simple Voting/Poll web application, as well as showing us how he created the Polling component which the web application uses.

All in all it’s a very interesting read! Check it out here: Developing components in Delphi For PHP

Regards,
Delphi-PHP