如何检查已使用哪种语言开发网页 [英] How to check that Which language has been used to develop a web page

查看:174
本文介绍了如何检查已使用哪种语言开发网页的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果我打开一个网站页面,那么有没有办法检查是否已经使用哪种语言(asp / php / html)来开发该网页。



请给我一个满意的答案。

If I open a Website page then Is there any way to check that which language(asp/php/html) has been used to develop that web page.

Please provide me a satisfactory answer.

推荐答案

ASP不是一种语言。好吧,ASP和NET是服务器端技术,都使用HTML。

尽管如此,这个问题仍然有意义,即使它看起来像苹果和橙子的比较。



严格的答案是:没办法!如果你从客户端或HTML源代码查看页面,你看不出原则上的任何差异 - 所有这些都隐藏在服务器端,并由支持一个或多个服务器端模块的HTTP服务器生成。



在实践中,间接地,您可以得出结论:以.aspx结尾的页面名称通常是ASP.NET,。php - 用PHP编写。您还可以查看HTML源代码并注意功能集的样式,丰富程度等。如果您了解传统风格和开发人员生活的其他方面,您可以做一些猜测。最后,一些网站在页面上明确声称:使用ABC技术支持。



(顺便说一下,有一种非常普通的风格(我个人喜欢)当没有使用扩展时。所有的URL都类似于没有扩展名的目录名。其中一个Python服务器端模型甚至需要通过URL遍历来实现这种风格,即使服务器端脚本代码没有那些目录,甚至可以是一个文件。)



但是!它不能保证正确答案!原则上,任何服务器端语言都可以完美地模仿另一个人的行为。同样,一切都隐藏在服务器部分,只有生成的HTML代码(更准确地说,HTTP协议的输出,因为也有标题)浮现在HTML客户端。
ASP is not a language. All right, ASP and NET is server-side technology, and all use HTML.
Nevertheless, the question makes sense, even though it looks like comparison of apples and oranges.

Strict answer is: no way! If you look at the page from the the client side or HTML source code, you cannot see any differences in principle -- all is hidden in server side and generated by HTTP server supporting one or more server-side modules.

In practice, indirectly, you can draw a conclusion: page name ending with ".aspx" is usually ASP.NET, ".php" - written in PHP. You can also look at the HTML source code and pay attention for the style, richness of the feature set and the like. If you know traditional styles and other aspect of developer's life, you can do some guesswork. Finally, some sites explicitly claim on the page: "Powered with ABC technology".

(By the way, there is a very common style (which I personally like) when no extensions are used. All URLs resembles "directory names" without extension. One of the Python server-side models even require this style via "URL traversing", even though the server-side script code does not have those "directories", can be even a single file.)

But! It does not guarantee correct answer! In principle, any of server-side language can perfectly imitate behavior of another. Again, everything is hidden on the server part, only resulting generated HTML code (more exactly, output of HTTP protocol, because also there are headers) is surfaced to the HTML client.


我试过了你提到的网站,如果服务器没有彻底骗我,这是我通过Fiddler2得到的:

I tried out the site you mentioned and if the server wasn't outright lying to me this is what I got via Fiddler2:
Server: Apache/2.2.16 (Unix)
    mod_ssl/2.2.16 OpenSSL/0.9.8e-fips-rhel5
    mod_auth_passthrough/2.1
    mod_bwlimited/1.4
    FrontPage/5.0.2.2635
    mod_perl/2.0.4 Perl/v5.8.8





从这里我可以假设网站是通过在Unix下的Apache网络服务器上运行的perl CGI脚本运行的,但是我为什么要相信一些网络服务器告诉我的内容。 :-B



正如我之前所说的那样,即使文件扩展名.aspx .ashx .pl和.php或其他任何内容都不能说它也不可能。这意味着什么。



干杯!



Manfred



From this I could assume that the website is run via perl CGI scripts running on an Apache webserver under Unix, but then again why should I trust what some webserver tells me. :-D

As has been said before me, it is impossible to say even when file extensions .aspx .ashx .pl and .php or whatever are present it doesn't mean a thing.

Cheers!

Manfred


这篇关于如何检查已使用哪种语言开发网页的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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