Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/python
- # Don't forget to set executable flag of the script file (using chmod)
- # or the script won't be executed and viewed as regular text file.
- # new line MUST be explicit
- print "content-type: text/html;\n"
- print "<!doctype html>"
- # HTML content starts here
- print "<html><body><h1>My python script works!</h1></body></html>"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement