Using xml as a database in php

I heard that xml is used as a database, can someone give me simple advice or a link to a tutorial on how to store some information in a database? what is the best way to use xml in php to implement data?

+5
source share
5 answers

XML should not be used as a database, but as a way to transfer data in an agnostic application. For example, let's say you have many RSS feeds in Google Reader, and you want to add them to Thunderbird. You export them from Google Reader in XML format, and then import this XML file into Thunderbird. Both applications will know how to read and write from XML and how to use the information (RSS feeds) in it.

If you want to store information in a useful way, for example, to organize and search through it, you will need a complete database. Some good mysql and postgresql . Both of them work well with PHP and have extensive tutorials to get you started, all easily accessible through any search engine.

+2
source

, , , XML . , . , , , . , , XML , .

OO php/XML . XML . , , , . , XML, . XML , .

, , , , .

-, -, XML .

, JSON, JSON XML, XML - , ( ), .

+4

Stackoverflow:

+2

, " , , XML ?" .StackExchange Site.

This is a mixed bag. SimpleXML is great for PHP, but there are many FUDs when it comes to languages ​​and XML query implementations .

0
source

To add to what Fanis said, if you want something lightweight, I highly recommend MongoDB or SQLite

0
source

All Articles