监视特定文件的网页 [英] Web page that monitors a certain file

查看:85
本文介绍了监视特定文件的网页的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我对这个地方还很陌生,希望能获得一些见识.

我希望开始这个项目,它只是一个监视特定本地平面文件的简单网页.

例如,我有一个文件(xml,json或其他格式),其中包含某个项目的属性.如何在网页上显示这些属性?

解析不是问题,我只需要知道从哪里开始:如何在网络中访问本地网页,有关我使用的语言的建议以及通常从何处开始.

非常感谢任何见解.希望这个问题有意义.谢谢!

-D

Hi Everyone,

I''m fairly new to this place and was hoping to get some insight.

I''m looking to start this project, it''s just a simple webpage that monitors a certain local flat file.

For example, I have a file(xml, json, or other format) that contains attributes for a certain item. How do I display those attributes on the web page?

Parsing is not an issue, I just need to know where to even start with this: how to make that local webpage accessible within the network, suggestions on languages I use, and just generally where to start.

Any insight is much appreciated. Hope the problem makes sense. Thanks!

-D

推荐答案

请参阅我对这个问题的评论.

甚至在您回答之前,在分析了您的可能意思之后,我认为您在问的可能没有任何意义,无论您的意思是什么.

请按照我的逻辑.如果要监视客户端系统上的文件,出于安全原因,该文件无法实现. Web应用程序无权访问本地系统,这是有充分的理由的.我认为人们不会那样使用Web.而且,出于一般的安全性原因,尤其是受到隐私权侵害威胁,监视任何文件并将其报告给Web上的其他用户都是不可接受的. br/>
呈现本地HTML文件(不会对安全或隐私造成威胁)的Web浏览器也无法监视任何内容.此外,没有任何意义,因为使用本地系统,因此编写与Web技术无关的本地软件很容易(因为-为什么?),并且可能成为简单的Windows服务.

最后,即使某些服务器端代码可以监视服务器主机本地的文件,但从原则上讲没有任何意义. HTTP服务器或其主机上的任何文件都不应通过任何随机访问进行任何修改.只能通过Web应用程序本身对其进行修改(因为实际上是在使用本地数据库时发生的; Web用户可以更新某些数据).但是在这种情况下,不需要进行任何监视,因为适当的更新事件是由HTTP帖子触发的.这样的文件在这里完全不相关. Wen界面适用于Web用户触发的数据和事件,而不适用于文件.

因此,根据我的推理,我认为问题没有道理.但是,如果您认为我想念任何事情,请纠正我.

—SA
Please see my comments to this question.

Even before you answered, after analysis of what you possibly might mean, I think that what you are asking may not make any sense, not matter what you meant.

Please follow my logic. If you want to monitor a file on the client system, it cannot be implemented, due to security reasons. A Web application does not have any access to the local system, for a good reason. I think people would not be using Web it it could. And monitoring any file and reporting it to other users on the Web would be not acceptable not by a general security reasons, but also and in particular by a privacy violation threat.

The Web browser rendering local HTML file (which would not be a security or privacy threat) also cannot monitor anything. Besides, it would not make any sense, because of a local system use, it''s easy to write a local software which has nothing do to with Web technologies (because — why?) and could presumably be a simple Windows Service.

Finally, even though some server-side code could monitor a file local to the server''s host, it cannot make any sense in principle. No file on the HTTP server or its host should be modified by any random access by anything. It can only be modified via the Web application itself (as it actually happens when a local database is used; and the Web user are able update some data). But it this case, nothing like monitoring is ever needed, as the proper update events are triggered by HTTP posts. The file as such it totally irrelevant here. The Wen interface works with data and events triggered by the Web users, not with files.

So, from my reasoning I infer that the question makes no sense. However, if you feel that I miss anything, please correct me.

—SA


这篇关于监视特定文件的网页的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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