Running Python

From Free Hosting Wiki
Revision as of 17:02, 28 October 2010 by Masshuu (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Jump to: navigation, search

CGI has been temporarily disabled so this will not work.

Follow these simple instructions to run Python on your free hosting:

  • Add the following to .htaccess:
AddHandler cgi-script .py
  • Change the permissions of the file to 0755
  • Add the following code to the top of your Python file:
#!/usr/bin/env python

You should then be able to run your Python file.

Personal tools