topical media & game development
professional-web-01-v3-index.php / php
<?php
//require_once ('html.inc');
require_once ('db.inc');
require_once ('cache.inc');
require_once ('yahoo_quotes.inc');
require_once ('yahoo_finance_news.inc');
require_once ('delicious.inc');
require_once ('watch.inc');
global document, fragment = new DOMDocument();
xml);
document->importNode(document->documentElement->appendChild(db=openDb();
db);
query->fetch(SQLITE_ASSOC);
root = document->appendChild(document,
getAllWatches(watchRow) {
appendDocument(
db, document,
get_cached_data(
getUrlQuotes(document,
get_cached_data(
getUrlFinancialNews(document,
get_cached_data(
getUrlDelicious(_GET['format'] == 'xml') {
header("Cache-Control: max-age=60");
header("Content-type: application/xml");
print xsltSource = new DOMDocument();
xsltSource->load('format.xsl');
xsltSource);
header("Cache-Control: max-age=60");
header("Content-type: text/html");
print document);
?>
(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.