[Valid CSS!]
[Valid XHTML!]
[Site Logo]

MSCIS.org

Hit Count: 222335

Begin XHTML Document

This PHP code begins an XHTML document that parses RSS with MySQL.

Declare XML Variables

<?php

// xhml variables

$xmlver   = "1.0";
$enc      = "utf-8";
$xmld     = "<?xml version=\"$xmlver\" encoding=\"$enc\" ?>";
$xmlns    = "http://www.w3.org/1999/xhtml";

$dtd      = "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Strict//EN\"
 \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd\">";

$metaArr = array (
 'author'      => 'Brandon Stout',
 'changed'     => date("Ymd", getlastmod()),
 'changedby'   => 'Brandon Stout',
 'created'     => '20060624',
 'generator'   => 'Direct Input Via phpMyAdmin Text Field',
 'description' => 'A page for parsing RSS feeds with PHP',
 'keywords'    => 'rss, xml, parse, brandon stout, uphpu, php, mysql',
 'owner'       => 'myemailaddress@mydomain'
);

?>

Begin the XHTML Document Code

<?php

// echo xml version, dtd, and <head> content, begin <body>

echo <<<str
$xmld
$dtd
<html xmlns="$xmlns">
<head>
<title>RSS Updater</title>\r\n
str;

foreach ($metaArr as $name => $content){
 echo wordwrap(" <meta name=\"$name\" content=\"$content\" />\r\n",80,
  "\r\n  ");
}
echo <<<str
 <meta http-equiv="Content-Type" content="text/html;charset=$enc" />
 <link rel="stylesheet" href="styles.css" type="text/css" />
 <script type="text/javascript" src="./js/expand.js"></script>
 <script type="text/javascript" src="./js/external.js"></script>
</head>
<body>\r\n
str;

?>

Ebay Seller qmoney1 is a clever fraud and rip off artist