9386In-Depth with CGI.pm - HTTP Headers - Redirectinghttp://perl.about.com/library/p101/bl_p101class.htmI pointed you at AWBot a while back, which is an interesting application for testing and spidering your web site automatically. AWStats is a perl application for graphically analyzing and viewing your web, ftp and mail server statistics. You can run it as a CGI or from the command line and easily put it on a cron to update your statistics every night. It has tons of log formats available, including the most common ones like Apache and IIS.
I use AWStats myself for a variety of servers, and can say without hesitation that this is the best open-source stats program out there. The graphs are easy to look at and full of information, and the script runs flawlessly and consistently. Are you using AWStats on your site? Let me know, I'd like to hear how it's working for you as I explore profiling it more deeply.CGI and Perl > Tips and Tutorials > Introduction to Perl and CGIOct 11, 2006
In this site you will find a number of scripts which I have used to promote my site and to drive traffic. These are listed below. Click the appropriate links to find out more details about the features of the script.
This tutorial provides a problem-oriented introduction to Perl within the context of CGI. The approach is narrative. A problem is introduced and the tutorial then proceeds, step by step, to solve the problem. Perl concepts and features are introduced as they are needed to accomplish each step. The Perl Basics discussion, by contrast, provides a systematic description in which concepts and features are presented in a logical order consistent with the structure of the Perl language, itself. The two discussions are intended to complement one another. While the tutorial can be used with different operating systems, the discussion is cast in the context of UNIX.
The problem that will be solved is extracting the data passed to a Perl program by a WWW server through the Common Gateway Interface (CGI) and constructing a reply expressed in HTML that is passed by the program back through the interface to the server and, then, to the client/user for display. This basic flow of data is shown in the figure, below. The terminal on the right represents the system you use to develop your Perl programs. You then store them within the file system used by the WWW server. They are subsequently accessed, through a WWW server and the CGI, by a WWW browser somewhere on the Internet.
I pointed you at AWBot a while back, which is an interesting application for testing and spidering your web site automatically. AWStats is a perl application for graphically analyzing and viewing your web, ftp and mail server statistics. You can run it as a CGI or from the command line and easily put it on a cron to update your statistics every night. It has tons of log formats available, including the most common ones like Apache and IIS.
I use AWStats myself for a variety of servers, and can say without hesitation that this is the best open-source stats program out there. The graphs are easy to look at and full of information, and the script runs flawlessly and consistently. Are you using AWStats on your site? Let me know, I'd like to hear how it's working for you as I explore profiling it more deeply.
This tutorial will be covering the PERL syntax and should provide you with a very solid foundation of PERL for you to build upon. It is recommended that before you start walking through our tutorial that you have a general understanding of Web Development as well as some background knowledge of HTML and CSS as our tutorial is directed toward Web programming.
Ada's Introduction to CGI & SSI
This tutorial written by Ada Shimar and exclusively contributed to JavaScript Kit.
I began studying CGI after a school project on creating a web site for my school. I realized then that CGI is an inescapable part of any cool and interactive web site. You want a message forum for your site? How about a feedback form, or a counter? As I found out, the only way to make these things happen is through CGI scripts. Make no mistake, CGI is not the only language when it comes to making your site cool and interactive (DHTML is another), but it's definitely the most important and one the web can't live without. After looking through this site, you'll have a much better understanding of what CGI is in general, and also how to debug and install your own CGI scripts.
Joining mailing list will entitle you
to receive occasional emails informing you of news and
updates to the site and any special offers that may be
of interest to you.