On Mar 15, 2007, at 6:46 PM, Whil Hentzen (Pro*) wrote:

> What requirements are there, other than mod_python and some tweaks to
> httpd.conf, for Python to replace PHP as the language engine for a  
> Web app?

        Uh... it depends. See below.

> What are the differences, if any, running on a Windows box?

        You don't need to reboot every day.

> And how does it work? I've poked around a bit but haven't found a 30
> second 'this is what it does' tutorial. I'm looking for one of those
> explanations you'd get while riding up in an elevator with someone, on
> the order of "PHP is an Apache module that intercepts requests to the
> server. You have a .php page on the server. In it is a mixture of PHP
> and HTML code. When a browser requests the page, the PHP module
> interprets PHP commands and functions on the page and returns static
> text as results of those commands and functions."

        This is where the "it depends" comes in.

        One statement about Python is that there are more web frameworks in  
Python than keywords. It might be an exaggeration, but not by much.

        You *can* use mod_python to embed Python code in web pages, as PHP  
and/or ASP do. You can probably write your own web server from  
scratch in Python in about a half hour. You can install Zope and have  
a full-featured web application server with a ton of built-in stuff,  
and 2 tons more stuff that you can add with a couple of clicks. You  
can install any number of frameworks that span the range of DIY to  
"answer a few questions, and you're done". It all depends on what it  
is that you want to do.

        Who was that wise guy who kept ranting about "choice" being a good  
thing? ;-)

-- Ed Leafe
-- http://leafe.com
-- http://dabodev.com




_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.

Reply via email to