Page 1 of 1
how do i get a python script working on the web ?
Posted: Mon Mar 10, 2003 10:08 pm
by lazy_yogi
Hi ... I'm learning python and I was just wondering if anyone has an example of a python script for use on the web.
I can't seem to get it to work via the web .. only on the command line.
I actually learn better with examples .. so any (or many) python examples would be a great help
Cheers
Posted: Sat Mar 29, 2003 5:33 am
by DocSeuss
python isn't really a web language. If it were to be used on the web the Python interpreter itself would have to be installed on the web server in question. I'm assuming that if you are just starting to learn python, a very cool lang. IMHO, you have checked out
http://www.python.org.
well,
Posted: Mon Mar 31, 2003 3:37 pm
by llimllib
How do you define an "internet language"? From its very beginnings Python has been a very capable 'internet language' - I would argue more so than PHP. PHP is, to me, mainly useful as a 'dynamic web page generation' language, which is what I use it for, because it's faster than python CGI in Apache, and simpler than mod_python. However, python excels as an 'internet language' for accessing servers, or for writing them. Check out the whole
Zope framework, for example. Also, modules exist with a much larger range of capabilities for Python than they do for PHP.
Now, as for the poster's original question, You need to be more specific. Are you trying to use mod_python on Apache? python as a CGI language from X webserver? saying you want to "use python on the web" means almost nothing.