Win 95, PWS, Unable to run python
rchowd1 at my-deja.com
rchowd1 at my-deja.com
Mon Feb 21 01:11:38 EST 2000
PWS (Personal Web Server) is running on my Windows 95 OS.
But whenever I am trying to execute the Test.asp file I get
entire Test.py file as is instead of getting executed. Could
you please let me know what I am doing wrong. The following
files work when I use APACHE WEB SERVER.
Test.asp file
-------------
<HTML>
<BODY>
<A HREF="Test.py">Test Python CGI in WIN 95</a>
</BODY>
</HTML>
==========================================================
Test.py file
------------
#!c:/Program Files/Python/Python.exe
if __name__ == '__main__':
print 'Content-type: text/html'
print '\n\n'
print '<H1>Python CGI on WIN 95 works</H1>'
==========================================================
Sent via Deja.com http://www.deja.com/
Before you buy.
More information about the Python-list
mailing list