Create Dynamic Sitemap Using PHP with Mysql
In this Post We Will Explain About is Create Dynamic Sitemap Using PHP with Mysql With Example and Demo.Welcome on Pakainfo.com – Examples, The best For Learn web development Tutorials,Demo with Example! Hi Dear Friends here u can know to SiteMap XML Dynamic SiteMap Generator using PHPExample
In this post we will show you Best way to implement Create Dynamic XML Sitemap & Rss Feed using PHP & MySQL, hear for xml – Creating dynamic sitemap with phpwith Download .we will give you demo,Source Code and examples for implement Step By Step Good Luck!.
Creating Dynamic XML Sitemaps using PHP Example
Sitemaps generally to be in XML data format, so that does not mean any all that We have to write simple XML source code for each page data manually. Let’s start to build a XML based sitemap together with simple PHP scripts.
<?php /* Creating Dynamic XML Sitemaps using PHP devloped by Pakainfo.com*/ header("Content-Type: application/xml; charset=utf-8"); echo ''.PHP_EOL; echo '' .PHP_EOL; function create_Elem($url) { echo ''.PHP_EOL; echo ''.$url.''. PHP_EOL; echo 'weekly'.PHP_EOL; echo ''.PHP_EOL; } create_Elem('http://www.Pakainfo.com/services/default-text-generator/'); create_Elem('http://www.Pakainfo.com/tests/livedata/'); create_Elem('http://www.Pakainfo.com/tests/livedata/HTML/'); echo ''; ?>
What is an XML Sitemap
Almost all some information we need to know here site about Sitemaps is available at officel site like as a http://www.sitemaps.org.
How to submit Sitemap to search engines
Google:simple Google Webmaster search Tools
Bing: simple Bing Webmaster search Tools
Yandex:simple Yandex Webmaster search Tools
Baidu:simple china Baidu Webmaster search Tools
Dynamic Create Site Map using PHP
This is a simple script, written in simple PHP, that will create or generate a simple dynemic site map based on the folder or directory structure of the web-site. We can easily simple exclude files and/or some directories.
<?php $sql_get = "SELECT * FROM data_post"; $data_result = mysql_query($sql_get) or die(mysql_error()); header('Content-Type: application/xml'); echo ''."\n"; echo ""; while($row = mysql_fetch_assoc($data_result)) { ?> http://www.Pakainfo.com/?t= 2008-03-23T13:36:17+00:00 0.50 weekly
I hope you have Got What is Create Dynamic XML Sitemap & Rss Feed using PHP & MySQL And how it works.I would Like to have FeadBack From My Blog(Pakainfo.com) readers.Your Valuable FeadBack,Any Question,or any Comments abaout This Article(Pakainfo.com) Are Most Always Welcome.