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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to make a self contained web server

Status
Not open for further replies.

pss08

Programmer
Mar 10, 2006
7
ES
New to Delphi, but more than 20 years of programming experience.

I need to begin a new project for a self contained http web server executable that does not depend on any Apache, IIs, etc.

I am thinking about buying the new Deplhi XE2 Professional because the Enterprise version is too expensive, and I am looking for advice on how to do it and what is the best technology to use, with some source code examples to begin with, if possible.

The project does not require any intensive performance, being the maximum concurrent sessions no more than 20 users, with an average of 1 to 5 connected users at the same time.

It will we be about 12 dynamic html web pages only, without any static html one, all generated from variable SQL data.

As other projects that like this one I have done for several years and used in production environments using RealBasic, all the pages will be generated dynamically by code. That is, with code like sPg := '<HTML><HEAD>......', sPg := sPg + '........</HTML>' and sending it to the Internet through something like Object.Print sPg.

I am confused about the amount of available technologies in Delphi: Sockets, Indy, IntraWeb, WebBroker, WebSnap, etc. So, this is why I want to make sure to choose the correct one from the beginning.
 
RAD studio XE2 has a multitude of components that would help with your project. I did a very basic webserver myself just as an experiment, and I was even able to include some support for PHP. Mine was done in C++ Bulder, but that is my preferred language, and the same components are available to Delphi. Mine was based on Indy's HTTPServer component, which is included in the Professioanl version.
 
From several weeks ago until yesterday, I peridically looked at nevrona.com, the host for the Indy project. It seems that the content is gone out, so, is this an indication that this open source project has been discontinued ?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top