On 8/1/2010 1:07 PM, Alex Hall wrote:
Hi all,
I have an IPowerWeb.com server, which claims to support Python. How
would I use this? For example, to start, how would I print html code
to the screen, or manage input from a form? Thanks.
Another participant just raised a similar question!
Unfortunately IPowerWeb.com does not "provide support for custom code or
custom scripts. We assume that if a customer wants to use Perl, CGI,
PHP, Python, ASP or any other scripting language, he/she has the
necessary programming skills to manage his/her scripts."
A starting place is the following script - let's call it "test.py".
Upload it then invoke it. Try http://url-to-your-site/test.py
#!/usr/bin/python
print "Content-type: text/html"
print
print "<html><head>"
print "<title>Hello World from Python</title>"
print "</head><body>"
print "Standard Hello World from a Python CGI Script"
print "</body></html>
--
Bob Gailer
919-636-4239
Chapel Hill NC
_______________________________________________
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor