No Images Added Yet

Combine XML, Files and SQLite3 with PHP 5

Rated1.7/5 (21 ratings)
Add to Favorites
Take a text file, a XML file and the SQLite3 database from PHP - and create a small web application
Product Details

This example shows you how to do it if you have no MySql DBMS at hand and a not to extensive amount of data to expect. The XML file (holds all basic data we want to make available in the administration by choice), the text file will handle all the chosen data and the SQLite3 will contain all data submitted from users - as an extra we want to trigger the most important actions as data inserts and changes in text files with error_log(). PHP has everything you need: SimpleXML and XPath to handle the XML data, the fopen-flock-fwrite-fclose functions to handle text files and the SQLite3 statements and features to handle database content. A configuration class concerns about the connections, a debugger class writes the log messages and a exception class of one's own secures that text files are always in fine read and write condition or checks if the submitted data has been manipulated. The function escapeString() prevents from submitting harmful code in the SQLite3 database.

Report this Listing
Licence Type
Submitted on
16th February 2009
Last Updated
22nd May 2016
Licence Type
License Price

You May Also Like

User Reviews

Please rate the listing and tell the world know what do you think about the listing.
(21 ratings)
Average User Rating: 1.7/5
No reviews found.
Not yet reviewed by any member. You can be the first one to write a review for this listing.Click hereto submit your review.