RE: [PHP] SQL in XML [was PHP and DBase...]

From: Date: Tue, 31 Jan 2006 20:46:59 +0000
Subject: RE: [PHP] SQL in XML [was PHP and DBase...]
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-229580@lists.php.net to get a copy of this message
> But, finally, I wonder if I shouldn't use XML files instead ? > Is it possible, directly, to make a SQL request on a XML file ? How much data are you storing and how fast do you need it? If you're doing heavy "database" type queries, then just use mySQL. XML is kind of a PITA to use IMHO. You have to set up DOM Objects and all this crap, then loop over nodes and use xpaths and watch out for #text elements and it's just messy. I'm forced to use XML for part of a project @ work, and I'm always grateful when I can switch back to using a database and SQL as God intended it to be. ;-p However, if you're just storing some basic configs or preferences, then I would suggest looking into a much simpler (and universal): http://www.php.net/parse_ini_file

« previous php.general (#229580) next »