Warning: Call-time pass-by-reference has been deprecated; If you would like to pass it by reference, modify the declaration of module_invoke_all(). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file in /home/.megatoes/geniusy/geniusy/drupal/modules/fuzzysearch/fuzzysearch.module on line 324
google | Geniusy's Blog

google

Sablog自动生成sitemap.xml文件插件(修改自samool提供的插件)

 in CMS研究

用samool提供的sitemap.php文件生成了一次sitemap.xml文件,但觉得每次都那样做的话真太麻烦了。先生成sitemap.xml文件的内容,然后再保存,上传,真是太麻烦了,每次写了博客都要做一次。   其实php是可以自己生成文件的,所以就想到改一下代码,直接生成sitemap.xml文件得了。而且samool提到的uft8文件问题也完美的解决,因为sitemap.php是utf8格式的,所以生成的sitemap.xml也是uft8格式的,可以通过firefox查看网页属性。

Tags: google, sablog, seo, sitemap.xml, utf8