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
http://sllib.x10hosting.com/sl_py/hello2.py/hi,
but the word "hello" didn't appear.
and i try another code:
#!/usr/bin/python
#!/usr/bin/env python
from mod_python import apache
def display(req):
req.log_error('handler')
req.content_type = 'text/html'
req.send_http_header()
req.write('')
req.write('Hello World!')
req.write('')
return apache.OK
but there is error and i think is the "mod_python" not found. How should i install the mod_python and if needed how should i create a support ticket?
I am now totally lost. Need help badly..
Anybody please help me. Deeply appreciate it.
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
http://sllib.x10hosting.com/sl_py/hello2.py/hi,
but the word "hello" didn't appear.
and i try another code:
#!/usr/bin/python
#!/usr/bin/env python
from mod_python import apache
def display(req):
req.log_error('handler')
req.content_type = 'text/html'
req.send_http_header()
req.write('')
req.write('Hello World!')
req.write('')
return apache.OK
but there is error and i think is the "mod_python" not found. How should i install the mod_python and if needed how should i create a support ticket?
I am now totally lost. Need help badly..
Anybody please help me. Deeply appreciate it.