topical media & game development
professional-web-01-v4-watch.php / php
<?php
global HTTP_RAW_POST_DATA))
HTTP_RAW_POST_DATA;
dom = new DOMDocument();
HTTP_RAW_POST_DATA);
if (!xml = simplexml_import_dom(xml->children() as element['escaped'] = sqlite_escape_string(trim(xml->asXML();
db->query(
"SELECT symbol from watches where symbol='".
req = "";
if (req="update watches set ";
xml->tag['escaped']."', ";
xml->title['escaped']."', ";
xml->description['escaped']."' ";
xml->symbol['escaped']."'";
} else {
req .= "'".req .= "'".req .= "'".req .= "'".req;
req);
echo "<ok/>";
}
header("Cache-Control: max-age=60");
header("Content-type: application/xml");
HTTP_RAW_POST_DATA)>0) {
print write(_GET['name']) {
print getAWatch(_GET['name']);
} else {
print getAllWatches(
(C) Æliens
20/2/2008
You may not copy or print any of this material without explicit permission of the author or the publisher.
In case of other copyright issues, contact the author.