Re : how to show simulation at web

T

Titi Anggono

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
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.
"In the fields of hell where the grass grows high
Are the graves of dreams allowed to die."
-- Richard Harter
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,743
Messages
2,569,478
Members
44,898
Latest member
BlairH7607

Latest Threads

Top