Re: [Tutor] Setting up server for CGI

2008-10-31 Thread Kent Johnson
On Thu, Oct 30, 2008 at 11:18 PM, <[EMAIL PROTECTED]> wrote: > I'm not sure what you mean, "What directory do you run from?". I mean, what is the working directory when you run your cgihttpserver.py program. You should be in the parent directory of the cgi directory so the server can find the cg

Re: [Tutor] Setting up server for CGI

2008-10-30 Thread btkuhn
I'm not sure what you mean, "What directory do you run from?". I have the file saved as C:\cgihome\cgi\cgitest.py and I try running it by typing the following in the URL field: http://localhost:8000/cgi/cgitest.py . I tried changing the folder name to cgi-bin and get the same error. It says, "N

Re: [Tutor] Setting up server for CGI

2008-10-30 Thread Kent Johnson
On Thu, Oct 30, 2008 at 9:41 PM, <[EMAIL PROTECTED]> wrote: > > I followed the instructions on a tutorial and created a "C:\cgihome" server, > and then > created the following file: > > C:\cgihome\server\cgihttpserver.py > > It contains the following code: > [CODE] > import CGIHTTPServer > import

[Tutor] Setting up server for CGI

2008-10-30 Thread btkuhn
Hi everyone, I am new to programming and have been programming with Python for about 2.5 months. After learning the basics of the language I am trying to teach myself CGI with Python. I've come across a few resources that teach CGI, but I am having much trouble setting up a server to view CGI sc