Ajax software
Free javascripts
↑
Main Page
$s->addItem(make_category_product_url(
“SEO & Toolbox”, 6, “Link Juice”, 31), ‘2006/10/27’, ‘weekly’);
$s->addItem(make_category_product_url(
“Friends’ Shed”, 2, “AJAX PHP Book”, 42), ‘2006/10/27’, ‘weekly’);
// output sitemap
if (isset($_GET[‘target’]))
{
// generate Google sitemap
if (($target = $_GET[‘target’]) == ‘google’)
{
echo $s->getGoogle();
}
// generate Yahoo sitemap
else if ($target == ‘yahoo’)
{
echo $s->getYahoo();
}
}
?>
5.
Load
http://seophp.example.com/sitemap.xml
. You should get a Google sitemap, as
shown in Figure 9-1.
Figure 9-1
206
Chapter 9: Sitemaps
c09.qxd:c09 10:43 206
Ajax software
Free javascripts
→