HTML to Classic ASP - Page Loads as Lines of Code (ASP)

时间:2022-09-20 01:39:34

So I am working with: http://glustik.com/essex/index.html

所以我正在使用:http://glustik.com/essex/index.html

and trying to make it ASP like this: http://glustik.com/essex/index.asp

并试图使ASP成为这样:http://glustik.com/essex/index.asp

But the ASP just loads as code. I want to use some TXT includes is why I am doing this, but it always seems to load just lines of code and not render.

但ASP只是作为代码加载。我想使用一些TXT包含是为什么我这样做,但它总是似乎只加载代码行而不是渲染。

What am I missing here? Please let me know.

我在这里想念的是什么?请告诉我。

3 个解决方案

#1


5  

To include files, just use <?php include 'file.txt' ?> instead of <!--#include file="file.txt"-->.

要包含文件,只需使用 而不是 。

From your previous questions I've answered, I know that your usual webserver is IIS (and you like to use Classic ASP), but the one you're using now is Apache, which will support PHP (and so PHP includes).

从我之前的问题我已经回答,我知道你通常的网络服务器是IIS(你喜欢使用经典ASP),但你现在使用的是Apache,它将支持PHP(以及PHP包括)。

#2


3  

ASP is a Microsoft technology.
You need to run IIS, not Apache.

ASP是一种Microsoft技术。您需要运行IIS,而不是Apache。

It's also totally dead.
You need to use ASP.Net, not ASP.

它也完全死了。你需要使用ASP.Net,而不是ASP。

You could also use PHP instead, if you really want to.

如果你真的想要,你也可以使用PHP代替。

#3


1  

A handler for .asp files hasn't been defined in your Apache server's configuration. To execute Classic ASP files on an Apache server, I suggest you have a look at Sun ONE Active Server Pages 4.01.

尚未在Apache服务器的配置中定义.asp文件的处理程序。要在Apache服务器上执行Classic ASP文件,我建议您查看Sun ONE Active Server Pages 4.01。

#1


5  

To include files, just use <?php include 'file.txt' ?> instead of <!--#include file="file.txt"-->.

要包含文件,只需使用 而不是 。

From your previous questions I've answered, I know that your usual webserver is IIS (and you like to use Classic ASP), but the one you're using now is Apache, which will support PHP (and so PHP includes).

从我之前的问题我已经回答,我知道你通常的网络服务器是IIS(你喜欢使用经典ASP),但你现在使用的是Apache,它将支持PHP(以及PHP包括)。

#2


3  

ASP is a Microsoft technology.
You need to run IIS, not Apache.

ASP是一种Microsoft技术。您需要运行IIS,而不是Apache。

It's also totally dead.
You need to use ASP.Net, not ASP.

它也完全死了。你需要使用ASP.Net,而不是ASP。

You could also use PHP instead, if you really want to.

如果你真的想要,你也可以使用PHP代替。

#3


1  

A handler for .asp files hasn't been defined in your Apache server's configuration. To execute Classic ASP files on an Apache server, I suggest you have a look at Sun ONE Active Server Pages 4.01.

尚未在Apache服务器的配置中定义.asp文件的处理程序。要在Apache服务器上执行Classic ASP文件,我建议您查看Sun ONE Active Server Pages 4.01。