Closed Thread
Results 1 to 2 of 2

Thread: How do I use Python on my website?

  1. #1
    ShedoSurashu is offline x10Hosting Member ShedoSurashu is an unknown quantity at this point
    Join Date
    Feb 2011
    Posts
    13

    How do I use Python on my website?

    The following code doesn't seem to work:

    Code:
    #!/usr/bin/env python
    # -*- coding: UTF-8 -*-
    
    import sys;
    print(sys.version);
    The above code only displays the text as it is. I also tried calling the python file from a PHP file via:

    Code:
    <?php
    echo exec('python python.py');
    ?>
    That also to no avail. It just returned "Warning: exec() has been disabled for security reasons in /home/shedo/public_html/python.php on line 5".

    But this page http://x10hosting.com/wiki/Plan_Comparison says that I have Python. As well as CGI, Perl, and ASP.net. Can anyone help me out?
    Last edited by ShedoSurashu; 01-31-2012 at 03:34 PM.

  2. #2
    ShedoSurashu is offline x10Hosting Member ShedoSurashu is an unknown quantity at this point
    Join Date
    Feb 2011
    Posts
    13

    Re: How do I use Python on my website?

    Bump.

Closed Thread

Similar Threads

  1. Django powered website (python) host
    By coderpriyu67 in forum Free Hosting
    Replies: 1
    Last Post: 08-10-2011, 02:07 AM
  2. Python Help
    By teakuno28 in forum Free Hosting
    Replies: 5
    Last Post: 11-01-2010, 11:51 AM
  3. CGI with Python
    By blendingcorey43 in forum Free Hosting
    Replies: 3
    Last Post: 10-23-2010, 03:46 AM
  4. Replies: 0
    Last Post: 09-05-2010, 01:06 AM
  5. Can I make a website in Python or Django?
    By somelauw in forum Programming Help
    Replies: 1
    Last Post: 05-03-2010, 06:43 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers