HTML to Classic ASP - Page Loads as Lines of Code (ASP)
So I am working with: http://glustik.com/essex/index.html
and trying to make it ASP like this: 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.开发者_如何学Python
What am I missing here? Please let me know.
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).
ASP is a Microsoft technology.
You need to run IIS, not Apache.
It's also totally dead.
You need to use ASP.Net, not ASP.
You could also use PHP instead, if you really want to.
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.
精彩评论