Web Programming thru python
python_lover
govisathish at gmail.com
Mon Sep 17 07:14:14 EDT 2007
HI,
Please help how to execute a py file with xitami.
I installed xitami , downloaded lrwp file.
accessing the first web application program
import urllib
# Get a file-like object for the Python Web site's home page.
f = urllib.urlopen("http://www.python.org")
# Read from the object, storing the page's contents in 's'.
s = f.read()
f.close()
through browser like "http://localhost/first.py
it is dispaying the source code of the first.py.
Please help me how to execute the file.
thank you.
More information about the Python-list
mailing list