【发布时间】:2012-06-20 08:36:57
【问题描述】:
是否可以在网页的单个文件中使用多种脚本语言?
例如,我想在我的网页中使用 python 和 ether php?
有没有可能?
我的意思是,有 python 一个模块来解析这样的文件吗?或其他网络服务器上的任何可能性?
像这样:
[文件 Erfankam.ppp]
<php script part>
Some thing in php
</php script part>
<html part>
something in html
<html part>
<python script part>
Some thing in python
</python script part>
<html part>
something in html
<html part>
<perl script part>
Some thing in perl
</perl script part>
希望我没有错。
【问题讨论】:
-
您可能想重新提出这个问题并具体谈谈您想要实现的目标。使用多种服务器端语言似乎是一个荒谬的想法,但由于我们不知道你真正想要做什么,所以很难评论。人们通常使用一种服务器端语言和一种客户端语言来呈现网页。
-
感谢您的注释。我知道使用一种以上的服务器端脚本语言是不正常的,但我只想知道这可能吗?实际上,我正在开发一个小型 Web 服务器项目,我想知道我应该在我的项目中实现它吗?
-
你应该考虑另辟蹊径:nodejs.org
-
我听不懂。什么意思?
标签: python apache web webserver