Before you start
On the server side, PHP is a widely supported scripting language that produces and reads XML data, interfacing easily with relational databases and other programs. PHP is great for implementing AJAX applications with service-oriented architectures. And it's a smart choice for integrating Web services that use common Internet protocols, such as HTTP, XML-RPC, Simple Object Access Protocol (SOAP), and Representational State Transfer (REST).
On the client side, OpenLaszlo is an elegant XML-centric, JavaScript-based Web programming language. It's designed for implementing interactive, media-rich, distributed, user-friendly interfaces to XML-based Web services. For programmers, the OpenLaszlo language is fun and feature-rich. For users, OpenLaszlo applications are richer and more responsive than conventional browser-based applications. (See Resources for available OpenLaszlo applications.)
This series chronicles the creation of a rating system for knock-knock jokes. Part 1 talks about the knock-knock protocol, and covers the creation of the basic PHP application and a simple OpenLaszlo interface, with graphics and sound, for that application. Part 2 will discuss deployment options, and show the creation of the OpenLaszlo application as a stand-alone piece that can be deployed on any Web server and communicate directly with a PHP application. Part 3 expands the application to create a system in which PHP creates the OpenLaszlo code dynamically.
You will learn about OpenLaszlo, set up the development environment, and create a basic OpenLaszlo application that will serve as an interface for a joke rating service. OpenLaszlo is a free XML/JavaScript-based Web application programming language that enables you to write interactive multimedia applications that can ultimately be deployed to the browser in many ways. Currently, the target environment is a Flash movie, playable on virtually any modern browser without user intervention.
You will learn about:
- The sample knock-knock protocol
- What OpenLaszlo is and what it's for
- How to set up an OpenLaszlo development environment
- The basics of OpenLaszlo programming
- Running an OpenLaszlo application
- Adding interactivity, graphics, and sound to the interface
You will need to install OpenLaszlo on your development machine (and optionally on your server), and PHP and Apache on your server (and optionally on your development machine). We will walk through installing OpenLaszlo, PHP, and Apache on your development machine:
- The Apache Web server is maintained and developed by the Apache Software Foundation.
- You can download PHP for free from PHP.net. Instructions here assume you are installing on Windows®, but the site has instructions for other platforms, as well.
- Download OpenLaszlo from Laszlo Systems. The basic instructions will be covered here..

