how do i get a python script working on the web ?

XML, Perl, Python, and other languages can be discussed here, even if it isn't PHP (We might forgive you).

Moderator: General Moderators

Post Reply
User avatar
lazy_yogi
Forum Contributor
Posts: 243
Joined: Fri Jan 24, 2003 3:27 am

how do i get a python script working on the web ?

Post 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
DocSeuss
Forum Newbie
Posts: 10
Joined: Sat Mar 29, 2003 3:28 am

Post 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.
User avatar
llimllib
Moderator
Posts: 466
Joined: Mon Jul 01, 2002 2:19 pm
Location: Baltimore, MD

well,

Post 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.
Post Reply