dongluan7821 2010-10-20 23:40
浏览 33
已采纳

原始文本存储与文本解析(BBCODE(PHP))

Im making my little site where users can create blogs, and have studied publishing tools like wordpress and vbulletin.
When a user creates a post with BBcodes/mark up language, should i parse it into HTML and insert in db, and then only echo the text for the user, or should insert it with bbcode in the db, and let the php page parse it from bbcode to proper html? lets just say i have 2000 visitors at one given time, what is the best method? can it not be tough for the server if 2000 pages has to be loaded where 200kb of text needs to be formatted from bbcode to html

  • 写回答

1条回答 默认 最新

  • douwen7603 2010-10-20 23:43
    关注

    Always store your data unformatted. If you ever need to change the how the output looks in the future, it will be easy.

    Your server will do just fine. It isn't about the number of pages, it is the number of concurrent users.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 下图接收小电路,谁知道原理
  • ¥15 装 pytorch 的时候出了好多问题,遇到这种情况怎么处理?
  • ¥20 IOS游览器某宝手机网页版自动立即购买JavaScript脚本
  • ¥15 手机接入宽带网线,如何释放宽带全部速度
  • ¥30 关于#r语言#的问题:如何对R语言中mfgarch包中构建的garch-midas模型进行样本内长期波动率预测和样本外长期波动率预测
  • ¥15 ETLCloud 处理json多层级问题
  • ¥15 matlab中使用gurobi时报错
  • ¥15 这个主板怎么能扩出一两个sata口
  • ¥15 不是,这到底错哪儿了😭
  • ¥15 2020长安杯与连接网探