What is Python?

the definitive site for getting all the information you want about the python language is www.python.org

Easy Way to Test Python Scripts in Win 95

i've discovered the easiest way to test python cgi scripts in windows 95! use the freeware OmniHTTPd server from Omnicron, pretend that your perl interpreter is python.exe and change the extension of your top level scripts to .pl - that's all there is to it!

Python under OmniHTTPd
1.0 obtain OmniHTTPd v1.01 from Omnicron Technologies Corporation and do a typical install
2.0 start up OmniHTTPd - you will see a new icon in the system tray
3.0 right click on the icon and select Properties
4.0 click on Server tabbed dialog and enter 127.0.0.1 in Site Address and change Default Index page if desired
5.0 click on Advanced tabbed dialog, select Enable Perl CGI support and enter the path to python.exe
6.0 only the top level script needs to have an extension of .pl (eg. <.form action=mail.pl>.)
7.0 place your python scripts in the /cgi-bin directory and your HTML pages in the /htdocs directory
8.0 point your browser to http://127.0.0.1/ (or http://localhost/) to test your pages and scripts. (cgi's using METHOD=POST needs special handling)
9.0 to quit, right click on the OmniHTTPd icon and select Shut Down
(the literal "pl" is at location 035ADF in ohttpd.exe, if you're interested).


EASIER Way to Test Python Scripts in Win 95

another python enthusiast (robin dunn) has pointed out to me an even easier way to test python scripts in windows 95! The Xitami server from www.iMatix.com is so easy to use, it uses even less resources than omni, has more features and it's also free!

Xitami can even handle the "pound bang" notation (ie. #!/usr/bin/python). It takes the last part of the line and looks for an executable of that name in your path! That means you can call your cgi scripts as .cgi or .py (or any extension for that matter, as long as you supply the executable).

Python under Xitami
1.0 obtain Xitami from iMatix and install
2.0 start up Xitami - you will see a new icon in the system tray
3.0 place your python scripts in the /cgi-bin directory and your HTML pages in the /webpages directory (these destinations may be changed)
4.0 point your browser to http://127.0.0.1/ (or http://localhost/) to test your pages and scripts. (cgi's using METHOD=POST needs special handling)
5.0 to quit, right click on the Xitami icon and select Terminate


home