From mboxrd@z Thu Jan 1 00:00:00 1970 From: Geoff Torres Subject: Re: difference btw CGI and HTML scripts Date: Tue, 19 Nov 2002 09:09:28 -0800 Sender: linux-admin-owner@vger.kernel.org Message-ID: <3DDA7048.60D9D6CC@rosemail.rose.hp.com> References: <20021118114252.B27228@zerodivide.cx> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Return-path: List-Id: Content-Type: text/plain; charset="us-ascii" To: linux-admin@vger.kernel.org Tyler wrote: > > On Mon, Nov 18, 2002 at 04:01:23PM +0800, simon Shaw wrote: > > Hi.. > > > > Could you tell him what is the difference between HTML and CGI scripts?? > > What is the relationship between them? When we need to create CGI script in > > /var/www/cgi-bin/ compare to the html scripts in /var/www/html/*.html > > > > Simon > > > > Look, I don't mean to sound harsh here, but if you can't figure this out > yourself by reading the available documentation, an answer from someone > on this list is probably not going to be meaningful or useful to you. It might sound a little less harsh if you provide a pointer for him. Simon, what Tyler is saying (and I agree) is that the nature of your question shows how little you know about HTML in general and no one here really has the time to provide a tutorial for you. I would suggest a class or online tutorial to get you up to speed. I first started with the O-Reilly books for basic HTML web pages. There are many other good books available. The short, high-level (and incomplete) answer to your question is that HTML code is essentially the I/O of a web page and CGI scripts are the logic. A web page will collect user data and invoke the CGI script when you push the "submit" button. The script should output the results in HTML code. Geoff