如何在每个发布的文章中包含评论区域? [英] how to include comment area in every article posted?

查看:64
本文介绍了如何在每个发布的文章中包含评论区域?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

好吧,我会修正我的问题.

场景:评论区域将位于每篇文章的底部,即新闻文章.每个查看者都可以对发布的文章发表评论.这将保存在xml文件中,而不是数据库中.是否需要在每篇文章中创建1个xml文件,或者对此有另一种解决方案?一个很好的例子是新闻文章,观众可以在该文章上发表评论.

Ok i will revised my question.

The scenario: The comment area will be located in a bottom part of every article ie. news article. Every viewer can post their comment on that article posted. This is going to be save in an xml file and not on database. Does it need to create 1 xml file in every article or maybe there is another solution on this? one good example is a news article where viewer can post comment/s on that particular article.

推荐答案

对此表示抱歉.

好的,可以说该文章中发布了两个查看器,仅在几秒钟内就是他们的间隔.这就是为什么我要为此使用xml文件的原因,因此在保存到数据库中不会有太多麻烦.在这种情况下,我不知道其他问题,因为一次只能在xml文件中保存两个.
Sorry for that.

Ok lets say two viewer posted in that article and in just few seconds only are their interval. That''s why i want to use an xml file for this so i will not have much trouble in saving to DB. I dont know the other issues in this case by saving two at a time in xml file.


请不要在多个网站之间复制和粘贴内容,也不要清理您的帖子.

我会为每篇文章创建一个文件,即使那样,不使用DB是您问题的核心.然后,您可以将评论存储在该文件中,但是会遇到问题.您在HDD上有一个文件,当两个人同时发表评论时会发生什么?
Please don''t copy and paste across multiple sites and not clean up your post.

I would create one file per article, even then, not using a DB is the core of your issue. Then you can store comments in that file, but you''ll have issues. You have a file on the HDD, what happens when two people comment at once ?


这篇关于如何在每个发布的文章中包含评论区域?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆