how to show simulation at web
Titi Anggono
tiang_ono at yahoo.com
Mon Jun 6 21:06:29 EDT 2005
Here is my code in cgi.
=============================
#!/usr/bin/python
print "Content-Type:text/plain\n\n"
# python code here (create a simulation or graphics)
========================================
The python code is ok when I run it in executable file
.py.
Friend told me to change the default header in
httpd.conf from text/plain to
application/octet-stream. But, still doesn't work.
thanks
Kern wrote:
>First, read this:
>
>http://www.catb.org/~esr/faqs/smart-questions.html
>
>Then, come back and give us some substantive
>information about your
>problem. A small example of code that you think
should >work, but
>doesn't, will help us help you.
>--
>Robert Kern
>rkern at ucsd.edu
>"In the fields of hell where the grass grows high
> Are the graves of dreams allowed to die."
> -- Richard Harter
Hallo wrote:
> hi all,
>
> I have tried making a simulation with python. I want
it to be shown at
> a web. It is ok when I run it. so, I decided using
cgi. but, when I try
> it using a web browser it doesn't work.
>
> Is it problem in the header or something else ?
>
> If there are any suggestions about this problem, I
will be very happy.
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
More information about the Python-list
mailing list