|
|
Registered tutorials: 501 Registered Users: 33355
|
|
Rating: 4 out of 2 votes cast
Category: Ajax and PHP
|
AJAX and PHP Part 2 -- XML Communication/Processing
Abstract: This article focuses on processing requested XML data within the client-browser, and touches on the PHP server side XML processing as well.
PHP Script Handling of XML The following example script could be saved in a file called getxml.php or what ever you want to name it, this would read an XML document file called somedoc.xml and print the XML as a response to an AJAX request. Our AJAX example will use the following PHP script and the XML data following that in Listing B. Note that any PHP script producing XML data must set the response header to an XML type, as we have done with the header( ) statement in Listing A. This PHP script simply reads the XML file and prints it to the browser.
|
Reviews:
Rate and Review This Site
No reviews yet
Statistic Information About this Resource:
| Total Hits: |
62 |
| Unique Hits: |
52 |
| |
Daily |
Weekly |
Monthly |
| |
Unique |
Total |
Unique |
Total |
Unique |
Total |
| Average |
0.2 |
0.2 |
0.7 |
0.8 |
1.4 |
1.7 |
| Current |
0 |
0 |
2 |
2 |
2 |
2 |
| Previous |
0 |
0 |
1 |
1 |
4 |
4 |
| Dec 2 |
1 |
1 |
0 |
0 |
2 |
3 |
| Dec 1 |
1 |
1 |
0 |
0 |
0 |
0 |
| Nov 30 |
0 |
0 |
3 |
3 |
1 |
2 |
| Nov 29 |
0 |
0 |
0 |
0 |
3 |
4 |
| Nov 28 |
0 |
0 |
0 |
0 |
0 |
0 |
| Nov 27 |
0 |
0 |
0 |
0 |
0 |
0 |
| Nov 26 |
0 |
0 |
0 |
0 |
1 |
1 |
| Nov 25 |
0 |
0 |
1 |
2 |
1 |
1 |
| Highest |
2 |
3 |
4 |
5 |
8 |
10 |
|
|
|
Script Execution Time: 1.1569 | SQL Queries: 10 | Members: 501
Ajax Tutorial Top List - Powered by Aardvark Topsites PHP 5.1.2
|