Hi everybody,
I have problems with python. I would like to seek for help and advice.
Here is my code below:
#!/usr/bin/python
#!/usr/bin/env python
print "Content-type: text/plain\n\n"
def hi():
print "hello"
I would like to call the function hi() using...
Hi all,
I got a problem running python class file. It gives me an error 500 Internal Server Error. The link of my file is
http://sllib.x10hosting.com/sl_py/Address.py
I am able to run the source code file at my local computer using ActiveState ActivePython 2.6.
Here is my code as below...
Hi all,
I got a problem running python class file. It gives me an error 500 Internal Server Error. The link of my file is
http://sllib.x10hosting.com/sl_py/Address.py
I am able to run the source code file at my local computer using ActiveState ActivePython 2.6.
Here is my code as below...
Thanks alot for your help.
I add already User Defined Apache handlers with "python" and ".py".
I have my py file code as below:
(1)
from python import apache
def handler(req):
req.log_error('handler')
req.content_type = 'text/html'
req.send_http_header()...
Do I need to upload mod_python before adding to apache handler?
Where should I upload to?
There are two text box: Handler and extension(s).
I try to put "mod_python" as my handler and ".py" as my extension(s), but still doesn't work.
Or without uploading mod_python, can i run my .py files...
How to add Python to Apache handler?
Do I need to upload mod_python before adding to apache handler?
Where should I upload to?
There are two text box: Handler and extension(s).
I try to put "mod_python" as my handler and ".py" as my extension(s), but still doesn't work.
Or without uploading...