是否可以在一個網站上使用多種編程語言 - Is it possible to use multiple programming languages on one website -开发者知识库

是否可以在一個網站上使用多種編程語言 - Is it possible to use multiple programming languages on one website -开发者知识库,第1张

Suppose i have one website with simple pages in php like

假設我在php中有一個簡單頁面的網站

page1.php
page2.php

Now there is one page where i want some detailed functioning and i want to use python for that and it will look like

現在有一個頁面,我想要一些詳細的功能,我想使用python,它看起來像

page3.py

and in other page i want to use java like

而在其他頁面我想用java之類的

page4.jsp

Provided i have installed python , java on webserver.

如果我已經在webserver上安裝了python,java。

Is it possible?

可能嗎?

8 个解决方案

#1


22  

Yes. It's possible. Where you will find yourself in trouble is when you want to share server-side information among them (I.E. sessions).

是。這是可能的。你會發現自己遇到麻煩的地方是你想在它們之間共享服務器端信息(I.E.會話)。

Other than that, you can use (but I would advise against it) all languages you want on a website.

除此之外,您可以使用(但我會建議不要)在網站上使用您想要的所有語言。

最佳答案:

本文经用户投稿或网站收集转载,如有侵权请联系本站。

发表评论

0条回复