duandang9434 2012-06-12 15:13
浏览 37
已采纳

写出html文件的PHP CMS教程

I want to create a cms that writes out flat html files, so no database involvement.

The idea is the CMS will allow files to be edited and updated (written in php and can make use of a mysql database if needed), then save/write out these changes to an html file, rather than having a php site that relies on mysql calls to get data.

My questions; does something like this already exist? Am I making things more difficult for myself by doing it this way?

THanks :)

  • 写回答

5条回答 默认 最新

  • dongxianchu3541 2012-06-14 13:22
    关注

    Barebones CMS sounds like it might fit the bill:

    http://barebonescms.com/

    It doesn't use MySQL and its built-in caching system outputs static HTML files. It uses a little PHP to bootstrap the cache but that can, depending on the website, be completely bypassed using some web server rules (e.g. .htaccess) or just push the static files to the right locations on a production box and rename them (requires using a subdirectory for every page).

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(4条)

报告相同问题?

悬赏问题

  • ¥20 神经网络Sequential name=sequential, built=False
  • ¥16 Qphython 用xlrd读取excel报错
  • ¥15 单片机学习顺序问题!!
  • ¥15 ikuai客户端多拨vpn,重启总是有个别重拨不上
  • ¥20 关于#anlogic#sdram#的问题,如何解决?(关键词-performance)
  • ¥15 相敏解调 matlab
  • ¥15 求lingo代码和思路
  • ¥15 公交车和无人机协同运输
  • ¥15 stm32代码移植没反应
  • ¥15 matlab基于pde算法图像修复,为什么只能对示例图像有效