1. Home
  2. Computing & Technology
  3. Python

Using PHP and Javascript instead of CGI

From , former About.com Guide

4 of 9

PHP: "PHP: Hypertext Preprocessor"

PHP is a recursive acronym (the acronym of its name is part of the acronym for which its name stands) and means "PHP: Hypertext Preprocessor." All of that is a lot of lingo to say that PHP is a scripting language that generates HTML. Within a HTML document, it can be used to generate new HTML on the fly. For our purposes, it will serve as a CGI alternative to get data to our Python script.

Why could we not simply pass the form data directly to our program? Without CGI, there is no dialogue with the web server. There is no way of knowing whether the program actually worked without feedback. In the ensuing program, PHP serves as a relay for communication between the web page and the server.

Explore Python
About.com Special Features

Stay connected and entertained with reviews on tips on the latest HDTVs, cellphones and more. More >

Easy ways to connect two computers for networking purposes. More >

  1. Home
  2. Computing & Technology
  3. Python
  4. Web Development
  5. PHP and Javascript for CGI - PHP: "PHP: Hypertext Preprocessor"

©2009 About.com, a part of The New York Times Company.

All rights reserved.