Solved

reallyEASY: Whats CGI?

Posted on 2000-03-07
20
312 Views
Last Modified: 2010-04-04
I have seen lots about it, but just what exactly is it?....

Thanks Craig C.
0
Comment
Question by:craig_capel
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 6
  • 6
  • 3
  • +3
20 Comments
 
LVL 2

Expert Comment

by:kubeerja
ID: 2593841
A CGI is a stand-alone Web server application. it is a console application that receives client request information on standard input and passes the results back to the server on standard output. Each request message is handled by a separate instance of the application. You can call this application from a browser that passes the request to the application and receives the response which usually is an HTML page.

0
 
LVL 2

Author Comment

by:craig_capel
ID: 2593853
uh?!? is delphi involved at all? for example, if i stuck a button and an edit box on the screen, could someone see and you that on the web?......
0
 
LVL 2

Expert Comment

by:kubeerja
ID: 2594602
CGI is a console application, it mains it is not visible and you can't use visual opject like a form or a button in it. To read more visit this site
http://www.drbob42.com/books/cgi.htm
0
[Live Webinar] The Cloud Skills Gap

As Cloud technologies come of age, business leaders grapple with the impact it has on their team's skills and the gap associated with the use of a cloud platform.

Join experts from 451 Research and Concerto Cloud Services on July 27th where we will examine fact and fiction.

 
LVL 1

Expert Comment

by:new_x
ID: 2594645

In fact it is a console program that generates HTML codes something like;

  writeln('<HTML><HEAD><TITLE>');
  writeln('Hello CGI');
  writeln('</TITLE></HEAD><BODY>');
  writeln('Simple CGI');
  writeln(</BODY></HTML>);


this program stands on the Web Server cgi directory. Then whenever a request comes. Web server executes this code and sends the resulting html code to the requester web browser. So Cgi gives you the capability of preparing HTML code on the fly (dynamic).
there are some other techniques to have a dynamic page. for instance ASP, Web Server Extensions.


Regards,
0
 
LVL 17

Expert Comment

by:inthe
ID: 2594787
hi craig,
some delphi involvment in cgi would be
with the client server version of delphi (and probably professional) you can write cgi apps.
either wingcgi or plain cgi (dll or exe)..this is with using the delphi web components (twebmodules etc)

you can use these to have a online database etc where you write event handlers as you would for a button click but you write them for web requests and in the cgi app you do some html to return a database entry to display it in the webbrowser using forms/tables etc whatever..

example response:

procedure TWebModule1.WebModule1WebActionItem1Action(Sender: TObject;
  Request: TWebRequest; Response: TWebResponse; var Handled: Boolean);
begin
Response.Title:='some title';
Response.Date:=Now;
Response.Server:='my secret server';
Response.Content := '<Body Text="#FF00FF" BGColor="#FFFFFF" Link="#0000FF" VLINK="#EE0000" FLink="#FF0000">'+
'<Html><Head></Head><Body>the date  <B>date</B> and <I>time</I> is '+
 DateTimeToStr(Now)+
 '<img scr="/cgi-bin/test.exe/sammy.jpg"></Body></Html>';
response.sendResponse;
handled:=True;
end;

 
oh and about this:
>>if i stuck a button and an edit box on the screen..

to do that you would need to make aand deploy an activexform ..
0
 
LVL 2

Author Comment

by:craig_capel
ID: 2595359
look at all those pretty colours...........
0
 

Expert Comment

by:kangxy
ID: 2595440
CGI = Common Getway Interface
you can visit www.internet.com and get more:)
0
 
LVL 17

Expert Comment

by:inthe
ID: 2597879
what version of delphi do you have?
if only standard version then i suggest to go here:
http://www.cgiexpert.com
get the freeware version of cgi experts components for delphi ,now you to can write a cgi program in delhi and have more pretty colors than a rainbow on acid hehe ;-)
0
 
LVL 17

Expert Comment

by:inthe
ID: 2597881
what version of delphi do you have?
if only standard version then i suggest to go here:
http://www.cgiexpert.com
get the freeware version of cgi experts components for delphi ,now you to can write a cgi program in delphi and have more pretty colors than a rainbow on acid hehe ;-)
0
 
LVL 2

Author Comment

by:craig_capel
ID: 2598130
Delphi 4 prof, love it, Rainbow on acid!!!!

Who wants the points, i got to give them someone... first one to post the next thing (whos already posted) gets them......

Or  if you have a better suggestion, let me know :)


0
 
LVL 2

Expert Comment

by:kubeerja
ID: 2598155
It doesn't worth the fight for 20 points!!!
0
 
LVL 1

Expert Comment

by:Indefrei
ID: 2598173
Here, here, here i am,
i want the pts, give them to me, cause i am the next....
Oops, didn't post before

anyway
how many degrees do you have right now
on your island
as far as i know, it's Teneriffa, isn't it !?
(Thinking about some holidays)

Thank you so much
Indi
0
 
LVL 1

Accepted Solution

by:
Indefrei earned 20 total points
ID: 2598189
Here, here, here i am,
i want the pts, give them to me, cause i am the next....
Oops, didn't post before

anyway
how many degrees do you have right now
on your island
as far as i know, it's Teneriffa, isn't it !?
(Thinking about some holidays)

Thank you so much
Indi
0
 
LVL 2

Author Comment

by:craig_capel
ID: 2598223
Sorry to all else.... how did you know i was in Tenerife?.....

it was 33c today, you a hacker or something?....
0
 
LVL 2

Author Comment

by:craig_capel
ID: 2598232
Sorry to all else.... again, dont worry next time i will take preference to you even if your not right with question i asked :)
0
 
LVL 1

Expert Comment

by:Indefrei
ID: 2598302
Be sure, they will be with you
but calm down
i am no hacker
Thanks
Indi
0
 
LVL 1

Expert Comment

by:Indefrei
ID: 2598331
33c
Incredible for a german in march
Think i'm gonna book now
See you on your island
Indi
0
 
LVL 1

Expert Comment

by:Indefrei
ID: 2598334
33c
Incredible for a german in march
Think i'm gonna book now
See you on your island
Indi
0
 
LVL 2

Author Comment

by:craig_capel
ID: 2598358
lol see ya around.... Is down South, if you really do :) near los christianos.....
0
 
LVL 1

Expert Comment

by:Indefrei
ID: 2598431
Well,
i will come back to your offer in any case, one day !!!!
enjoy everall
cheers
Indi
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…
Suggested Courses
Course of the Month7 days, 1 hour left to enroll

623 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question