Jump to content

Recommended Posts

Posted

I also wondering whether I can somehow start a python program (helloworld.py) in cpanelx? When I click on View it shows the source code which is btw:

 

#!/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>'

 

Do I need to chmod and use the Content-Type Header also.

 

Thank you all for assisting me, your support is utmost beneficiary

 

Cokie

Guest Geoff
Posted

You need to place that file in the cgi-bin directory.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...