Στις 5/7/2013 11:27 πμ, ο/η Dave Angel έγραψε:
Or if the problems cannot be recreated outside the cgi environment, use
the log files you've been logging other problems into. Or simply open a
text file for writing, and add a file= keyword parameter to the print
function call.
print(repr(e), file=myfile)
Yes you are correct, problem need to be recreated within the cgi env.
try:
remadd = os.environ('REMOTE_ADDR')
tuple3 = socket.gethostbyaddr(remadd)
host = tuple3[0]
except Exception as e:
host = repr(e)
http://superhost.gr/?show=log&page=index.html shows explicitly the same
kind of error that python interpreter via cli gave me the same error!
--
What is now proved was at first only imagined!
--
http://mail.python.org/mailman/listinfo/python-list