Server Side Scripting Language
Howdy all,
Since this is a broad question, I'm placing it here. I'm wondering how PHP and Perl work. I'm wanting to create a Server Side Scripting Language similar to these. I know if I had say, a .nova file. On the server, that file could be opened in my program, and my program would output the HTML...where?
Can someone shed some light on how I would go about this?
chem
Re: Server Side Scripting Language
PHP uses either an ISAPI extension or a CGI program that will parse the file run the code and output the result. An ISAPI extension is implemented as a DLL file (which of course makes it hard to create in VB). Here is an article that describes a simple ISAPI extension. A CGI program will send anything written to StdOut to the client webbrowser. Here are some information about creating CGI programs with VB.
You need to setup your webserver to get it to use your CGI program or ISAPI extension to execute your file with your custom file extension. This page describes how you do that in IIS for the PHP CGI and ISAPI extension. You can do the same thing with your own CGI program.
Re: Server Side Scripting Language
I think that I'm going to have to get a Web Server going. All my apprehensions should not be an issue from what I've seen. That looks very interesting.