Skip to main content

By clicking Submit, you agree to the developerWorks terms of use.

The first time you sign into developerWorks, a profile is created for you. Select information in your developerWorks profile is displayed to the public, but you may edit the information at any time. Your first name, last name (unless you choose to hide them), and display name will accompany the content that you post.

All information submitted is secure.

  • Close [x]

The first time you sign in to developerWorks, a profile is created for you, so you need to choose a display name. Your display name accompanies the content you post on developerworks.

Please choose a display name between 3-31 characters. Your display name must be unique in the developerWorks community and should not be your email address for privacy reasons.

By clicking Submit, you agree to the developerWorks terms of use.

All information submitted is secure.

  • Close [x]

Spice up PHP applications with OpenLaszlo, Part 1: Create interactive interfaces

Your first OpenLaszlo application

Nicholas Chase (ibmquestions@nicholaschase.com), Freelance writer, Backstop Media
Nicholas Chase has been involved in Web-site development for companies such as Lucent Technologies, Sun Microsystems, Oracle, and the Tampa Bay Buccaneers. Nick has been a high school physics teacher, a low-level radioactive waste facility manager, an online science fiction magazine editor, a multimedia engineer, an Oracle instructor, and the Chief Technology Officer of an interactive communications company. He is the author of several books, including XML Primer Plus (Sams).

Summary:  This "Spice up PHP applications with OpenLaszlo" tutorial series shows you how to use OpenLaszlo to create a more interactive interface for your PHP applications and how to use PHP to create more dynamic OpenLaszlo applications. It requires a basic understanding of -- or willingness to learn -- XML, JavaScript, and PHP. Each is well worth knowing for its own merits, plus they plug and play together nicely, since they're all based on synergistic open standards.

View more content in this series

Date:  14 Mar 2006
Level:  Intermediate PDF:  A4 and Letter (1503 KB | 46 pages)Get Adobe® Reader®

Activity:  9516 views
Comments:  

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.)

About this series

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.


About this tutorial

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

Prerequisites

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..

1 of 11 | Next

Comments



Help: Update or add to My dW interests

What's this?

This little timesaver lets you update your My developerWorks profile with just one click! The general subject of this content (AIX and UNIX, Information Management, Lotus, Rational, Tivoli, WebSphere, Java, Linux, Open source, SOA and Web services, Web development, or XML) will be added to the interests section of your profile, if it's not there already. You only need to be logged in to My developerWorks.

And what's the point of adding your interests to your profile? That's how you find other users with the same interests as yours, and see what they're reading and contributing to the community. Your interests also help us recommend relevant developerWorks content to you.

View your My developerWorks profile

Return from help

Help: Remove from My dW interests

What's this?

Removing this interest does not alter your profile, but rather removes this piece of content from a list of all content for which you've indicated interest. In a future enhancement to My developerWorks, you'll be able to see a record of that content.

View your My developerWorks profile

Return from help

static.content.url=http://www.ibm.com/developerworks/js/artrating/
SITE_ID=1
Zone=Open source
ArticleID=105174
TutorialTitle=Spice up PHP applications with OpenLaszlo, Part 1: Create interactive interfaces
publish-date=03142006
author1-email=ibmquestions@nicholaschase.com
author1-email-cc=dwxed@us.ibm.com

Tags

Help
Use the search field to find all types of content in My developerWorks with that tag.

Use the slider bar to see more or fewer tags.

Popular tags shows the top tags for this particular content zone (for example, Java technology, Linux, WebSphere).

My tags shows your tags for this particular content zone (for example, Java technology, Linux, WebSphere).

Use the search field to find all types of content in My developerWorks with that tag. Popular tags shows the top tags for this particular content zone (for example, Java technology, Linux, WebSphere). My tags shows your tags for this particular content zone (for example, Java technology, Linux, WebSphere).

Try IBM PureSystems. No charge.