cokie Posted July 15, 2011 Posted July 15, 2011 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 Quote
Guest Geoff Posted July 15, 2011 Posted July 15, 2011 You need to place that file in the cgi-bin directory. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.