Sharing and synchronizing data among visitors by DLL
Using TreeGrid server library and checking for updates feature
Do not run this file locally!
Run it from your local or remote web http server where is installed PHP.
Source files:

FileSharing.html

(this html page),

FileDef.xml

(static XML layout),

FileSharing.php

(server script generates and processes XML data; uses the TreeGrid.dll/so),

FileData.xml

(source XML data)

TreeGrid.dll

or

TreeGrid.so

(library located in package root directory /Server/TreeGrid32/ or /Server/TreeGrid64/ depending on server system, used in FileSharing.php),

tmp/

directory can be used for temporary data to free PHP memory.

To use the TreeGrid server side library you must copy the library TreeGrid.dll or TreeGrid.so file to your PHP extensions directory and add it to extensions in PHP.ini!

This example demonstrates using

TreeGrid server side DLL / SO

library for server side paging, calculations, grouping, sorting, filtering and updates. It demonstrates especially

checking for updates

feature.
This example loads all data from the FileData.xml file and fills them to TreeGrid DLL and uses it for generating data and pages for client.
Uploaded changes are sent only to TreeGrid DLL, to all users, and saved to temporary xml in /tmp directory. This example does not modify the source FileData.xml!
This example does not use any custom JavaScript or server script code, all features are set via XML data definitions and provided by TreeGrid!

This example requires PHP processor to be persistent in memory using Apache mod_php or IIS ISAPI filter. The PHP run as CGI / FastCGI cannot be used for this example, because it is too slow.

This page contains two independent grids as demonstration of two independent applications. Both these grid show the same XML data file. If you change data (and save changes) in one grid, the other grid will get information from server about change and let you to download changes.
You can also open this page in new window to get more grid instances open new page.