简体   繁体   English

如何从MySQL数据库生成站点地图

[英]How do I generate site map from MySQL database

I am new to Php and working on a project which needs to generate sitemaps from URLS which stored in MySQL database. 我是Php的新手,正在从事一个项目,该项目需要从存储在MySQL数据库中的URLS生成站点地图。 how can I do this?? 我怎样才能做到这一点?? Is there any one have any idea?? 有谁有什么主意吗?

site maps can be in php extension too and only requirement is list of sites display in each page 网站地图也可以在php扩展中,唯一的要求是在每个页面中显示的网站列表

Your question is very open ended... 您的问题很公开...

You would first need to connect to database, then depending on what type of sitemap you are doing (google, yahoo, html) You should output accoringly.. 首先,您需要连接到数据库,然后根据您正在执行的站点地图类型(google,yahoo,html)进行相应的输出。

What are you trying to produce and what have you done so far? 您想生产什么,到目前为止您做了什么?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM