I have apps that read online settings, and until now these settings are stored in xml. So my app read it's setting straight forward:
"http://foo.net/app/setting.xml"
But I want it to be easier to maintain, and store a lot of data in the database, So im thinkink of replacing ../app/setting.xml
with something like ../setting.php
where I in the php file would do something like
<?php
include mysql stuff ..
$bookid = $_GET['id'];
read database based on $bookid;
?>
<?xml version="1.0" encoding="utf-8"?>
<book>
<name><?php echo $row['name']; ?></name>
<published><?php echo $row['published']; ?></published>
</book>
Is it doable? Do I have to care about header stuff like header expires and cache?