Closed Thread
Results 1 to 2 of 2

Thread: Cannot execute Py script in CGI-BIN

  1. #1
    josh-r-m43 is offline x10Hosting Member josh-r-m43 is an unknown quantity at this point
    Join Date
    Jun 2011
    Posts
    1

    Cannot execute Py script in CGI-BIN

    Hello, my name is Josh. I am trying to execute a python script from my cgi-bin, and am doing so properly however I am constantly receiving an error: "The page you are looking for is temporarily unavailable.
    Please try again later. "

    code is correct

    <form method="POST" action="/cgi-bin/test.py">

    <p>Your first name: <input type="text" name="firstname">

    <p>Your last name: <input type="text" name="lastname">

    <p>Click here to submit form: <input type="submit" value="Yeah!">

    <input type="hidden" name="session" value="1f9a2">

    </form>



    #!/usr/bin/env python

    import cgi

    def main():
    print "Content-type: text/html\n"
    form = cgi.FieldStorage()
    if form.has_key("firstname") and form["firstname"].value != "":
    print "<h1>Hello", form["firstname"].value, "</h1>"
    else:
    print "<h1>Error! Please enter first name.</h1>"

    main()

    and I have done my chmod on test.py for 755, all executable rights, what's going on?

  2. #2
    MaestroFX1's Avatar
    MaestroFX1 is offline Community Advocate MaestroFX1 has a spectacular aura about
    Join Date
    Feb 2008
    Location
    Area 51
    Posts
    1,577

    Re: Cannot execute Py script in CGI-BIN

    Hello!
    Currently, Python is disabled on free hosting servers.
    For more information, please see:
    http://x10hosting.com/free-hosting-comparison

Closed Thread

Similar Threads

  1. Can't execute SQL
    By samsungflashwiki in forum Free Hosting
    Replies: 8
    Last Post: 08-10-2010, 03:06 PM
  2. java script files doesn't execute
    By anaschef62 in forum Free Hosting
    Replies: 1
    Last Post: 06-30-2010, 05:22 PM
  3. PHP Question: After the html page loaded the php script will execute?
    By waldopulanco29 in forum Programming Help
    Replies: 5
    Last Post: 05-20-2010, 08:44 PM
  4. $_SESSION[] clearing can't execute login script!!!
    By celebro in forum Free Hosting
    Replies: 1
    Last Post: 01-02-2010, 06:03 AM
  5. how to execute php script with cron jobs ?
    By magames in forum Programming Help
    Replies: 5
    Last Post: 08-12-2008, 12:15 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