+ Reply to Thread
Results 1 to 2 of 2

Thread: Python Cgi Programming

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

    Python Cgi Programming

    I am learning cgi python programming and I did put my test.py file in the cgi folder in free hosting service with following code.
    Code:
    #!/usr/bin/python
    
    print "Content-type:text/html\r\n\r\n"
    print '<html>'
    print '<head>'
    print '<title>Hello Word - First CGI Program</title>'
    print '</head>'
    print '<body>'
    print '<h2>Hello Word! This is my first CGI program</h2>'
    print '</body>'
    print '</html>'
    But it gives,

    Code:
    Forbidden
    
    You don't have permission to access /cgi-bin/test.py on this server.
    
    Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
    my link is http://www.ztron.x10.mx/cgi-bin/test.py

  2. #2
    descalzo's Avatar
    descalzo is offline Grim Squeaker descalzo has a brilliant futuredescalzo has a brilliant futuredescalzo has a brilliant future
    Join Date
    Jul 2009
    Location
    Ankh-Morpork
    Posts
    7,636

    Re: Python Cgi Programming

    Python and Perl have been disabled on the Free Servers and apparently will not be enabled.
    Nothing is always absolutely so.

+ Reply to Thread

Similar Threads

  1. Replies: 0
    Last Post: 09-05-2010, 01:06 AM
  2. CGI Programming in C
    By franco67 in forum Scripts & 3rd Party Apps
    Replies: 3
    Last Post: 08-20-2010, 03:05 AM
  3. Programming in python?
    By abisistemas in forum Programming Help
    Replies: 5
    Last Post: 08-31-2009, 11:41 PM
  4. Need help in programming with vb6
    By lordskid in forum Computers & Technology
    Replies: 2
    Last Post: 05-15-2008, 03:31 AM

Tags for this Thread

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