The PHP functions return an XML response that is returned to the client
application by the Xajax object. Based on the instructions in the XML
response, the Xajax??™s JavaScript message pump updates the content of
the client input page. Xajax has a feature that, data is updated only if data
has been modified.
1 Ajaxian.com- http://ajaxian.com/archives/ajaxiancom-2006-survey-results
160 8 Ajax with PHP-Xajax
8.2 Setting the Environment
As Xajax is a PHP class library, first download and install PHP 5. PHP 5
may be installed on different servers. We will configure PHP 5 with
Apache web server on MS Windows. Download PHP2 5.2.4 zip file.
Extract the PHP zip file to an installation directory, C:/PHP for example.
Download Apache HTTP Server 2.03 apache_2.0.x-win32-x86-no_ssl.msi
or a different version may be used. Double-click on the .msi file to install
the Apache server. Install the Apache HTTP server.
To the PATH environment variable add C:/PHP, the directory in which
PHP 5 is installed. Adding C:/PHP to the PATH variable makes php5ts.dll
available to JDeveloper PHP extension. Rename the php.init-recommended
file to php.ini.
The example application shall store and fetch data from Oracle
database 10g. Therefore, enable the Oracle database extension in php.ini
configuration file. Set the extension directory by specifying the following
directive in php.ini.
extension_dir = "./ext"
Activate the Oracle database PHP extension by removing the ???;??™ from
the following line.
Pages:
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148