Automatic for the people
Hands on When it comes to Web 2.0, PHP’s seen it all before. Birthed before the last great internet boom, PHP has matured and is now one of a triumvirate of languages synonymous with today’s craze for building web sites and online services with Linux and MySQL.
In this Hands On, I’ll demonstrate a simple way to use Ajax and PHP within Xajax, with an Oracle database, while sidestepping the need for the problematic
When a client application invokes the wrapper functions, a
XMLHttpRequest object is initiated and a
XMLHttpRequest object is sent to the server. On the server, the Xajax object receives the
The default request type of PHP functions registered through Xajax is
Download and go
As Xajax is a PHP class library, first download and install PHP 5 and Apache2 HTTP server as explained in an earlier, article on PHP. The example application shall store and fetch data from Oracle database 10g. Therefore, enable the Oracle database extension in the
php.ini configuration file.
Create an example database table in
OE schema with a PHP script,
Table.php, which is available in resources zip. Download Xajax0.2.4/0.2.5. Extract
xajax_0.2.4.zip file to the
C:/Program Files/Apache Group/Apache2/htdocs directory.
Next page: Send an Ajax request