Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

HTML

Status
Not open for further replies.

fergmj

Programmer
Feb 21, 2001
276
US
I have an application that monitors serial activity. I want to create a web page that displays the last time a serial port received information. I have all of the serial parts done, but I don't know how to print information to a web page in HTML format.

I see the PageProducer component, but I am unsure if that is the right thing for me to use, or if there is something better. The html code I have written is simple, I just need to know how to make the app post this info to a webserver.

Thanks

fergmj
 
You will have to make a ew application that is ISAPI/NSAPI compatible application (exe/dll) which contains a web module. Place the pageproducer components in the module. You will have place the application in the dir of the Web Server. Start the web server and then you can access the application through any browser
 
Why would I make it ISAPI/NSAPI compatible and not CGI or WINCGI? What is the difference?

Thanks

fergmj
 
Well...
ISAPI/NSAPI Dynamic Link Library:

ISAPI and NSAPI Web server applications are DLLs that are loaded by the Web server. Client request information is passed to the DLL as a structure and evaluated by TISAPIApplication.

Each request message is handled in a separate execution thread.

Selecting this type of application adds the library header of the project files and required entries to the uses list and exports clause of the project file.

CGI standalone executable:

A CGI standalone Web server application is a console application that receives client request information on standard input and passes the results back to the server on standard output. This data is evaluated by TCGIApplication.

Each request message is handled by a separate instance of the application.

Selecting this type of application adds the required entries to the uses clause of the project file and adds the appropriate $APPTYPE directive to the source.

Win-CGI standalone executable:

A Win-CGI standalone Web server application is a Windows application that receives client request information from a configuration settings (INI) file written by the server and writes the results to a file that the server passes back to the client. The INI file is evaluated by TCGIApplication.

Each request message is handled by a separate instance of the application.

Selecting this type of application adds the required entries to the uses clause of the project file and adds the appropriate $APPTYPE directive to the source.

I would go in for the dll, but then debugging can be a problem because you will have to shut down the web server, unless it supports removal or a dll from it's memory space.

An exe, is a heavy weight application. As mentioned above, it requires another instance of the application which consumes a lot of resources of the web server, unless your site has less than 10 hits at a given time, it is fine, but what if it grows to a million (OH MY GOSH), the server could go ill :)

So there is no problem in developing a CGI/WINCGI application for the purpose of debugging and testing, but you will have to convet it to a dll for deployment purposes

Welcome to the Pythian Games!
Long live Godess Athena!
dArktEmplAr of Delphi Oracle
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top