SDO for PHP Demos

These programs were created to illustrate some of the concepts and capabilities of the SDO for PHP extension.

They were intended to be as simple as possible, not to consider the issues of security and integrity which a production program must handle.

Before using these examples you first need to create the sdo_contacts database using contactdb_mysql.sql.

SDO API

This demonstrates the core SDO API.
It shows different ways to work with Data Objects, and that these are independent of the data source.
SDO API demo - database
SDO API demo - XML

Contacts

This demonstrates the use of SDO and the Relational Data Access Service.
It can be used to demonstrate disconnected working, that is, you can work on the SDO without needing to maintain a connection to the database.
To run: retrieve a contact, restart Apache, then update the contact. The update completes without failure.

It can also be used to demonstrate optimistic locking, that is, simultaneous access to the database is permitted, but a conflicting update is detected and rolled back.
To run: open two browser windows, retrieve the same contact, update one of them, then attempt to update the other. The second attempt fails because the Relational DAS detects and reports the collision.
Contacts demo

Letter

This demonstrates the use of SDO Sequenced types.
For more details, see the Sequence documentation.
The letter schema, showing a complex type with mixed="true".
Create the Letter

Jungle

Simple example demonstrating the use of SDO Open types.
For more details, see the Open type documentation.
The jungle schema, showing an <any> element.
Populate the Jungle

WSDL Generator

More complex example demonstrating the use of SDO Open types.
To be added