Editing
Portal:SaaS and Web Development
(section)
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
=== CGI and the first dynamic websites === In the earliest web era, CGI was simple and powerful. A web server such as Apache could receive a request, set environment variables, pass input to a program, and return whatever that program printed. The program could be written in many languages, but Perl quickly became one of the most common choices. Perl fit CGI because CGI itself was text-oriented. HTTP headers, form data, query strings, cookies, and HTML were all text. Perl was already strong at reading environment variables, parsing strings, escaping output, handling files, and generating reports. A Perl CGI script could be written quickly and deployed by copying it into a `cgi-bin` directory. This made Perl one of the first practical languages of web application development. Perl CGI scripts powered early search forms, site counters, feedback forms, mailing-list tools, file upload systems, shopping carts, webmail interfaces, bulletin boards, bug trackers, intranets, and administrative panels. The CGI model had a major limitation: a new process was typically started for every request. That made CGI easy to understand and isolate, but inefficient under heavier traffic. Each request could require starting Perl, loading modules, connecting to a database, generating a response, and then exiting. For small sites this was acceptable. For busy sites, it became expensive.
Summary:
Please note that all contributions to Perl Guilds - Getting Medieval with Perl may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
Perl Guilds - Getting Medieval with Perl:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Navigation menu
Personal tools
Not logged in
Talk
Contributions
Log in
Namespaces
Page
Discussion
English
Views
Read
Edit
Edit source
View history
More
Search
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Special pages
Tools
What links here
Related changes
Page information