cgi - Run Python 3.3 On My Webpage -


For the argument of pure education, I would like to know how to run a similar Python 3.3 script below. I know that I have to convert it to index.cgi , and it will be inserted into cgi-bin and what should I do? I am using Heliohost, so they are capable of compiling Python. I have also entered file_name.txt in cgi-bin I

  file = open ('file_name.txt') print ( File.read () print ('we just read the file')  

Thanks for your help!

You have to make sure that the permissions file is executable by the web server user.

Usually:

  # chmod 755 index.cgi  

Comments