escribi�:
I can get the script to run the python script but all that happens isThat's a server setting (Apache or whatever) - make sure it is configured
that the black python box appears then disapears, the html that the
python scripts should generate is never output.
[...]
This is calling the pyc file of the python script. I dont understand why
if i call the py file itself all i get returned is the plain text of the
python file.
to *execute* the script.
The python script is:I hope this is just the way you posted your message, but remember that in
#!/usr/local/bin/python
import cgi
def main():
print "Content-type: text/html\n"
Python indentation is important. The above code isn't valid. Once you are
sure that your script doesn't have syntax errors, add this lines on the
top to help debugging:
import cgitb; cgitb.enable()
--
Gabriel Genellina