B
Reaction score
0

Profile posts Latest activity Postings About

  • 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:

    #!/usr/bin/python
    #!/usr/bin/env python

    class Address:
    def __init__(self, Hs, St, Town, Zip):
    self.HsNumber = Hs
    self.Street = St
    self.Town = Town
    self.Zip_Code = Zip
    Addr = Address(7,"High St","Anytown","123 456")
    print Addr.HsNumber, Addr.Street


    Now, I am stuck and lost. Anybody can help me?? THanks alot in advance..
    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 mod_python, can i run my .py files?

    Please help me. Thanks alot.
  • Loading…
  • Loading…
  • Loading…
Top