[Tutor] Leaving PHP for Python

bob gailer bgailer at gmail.com
Tue Nov 25 15:17:58 CET 2008


Jason DeBord wrote:
> Hello All,
>
> This is my first message on the mailing list. I am excited to get 
> started developing content / backend for the web with Python.
>
> I have a background in PHP, but am convinced that Python is a better, 
> more powerful language.
>
> I am on a Windows XP machine and I have been using XAMPP for server, 
> php, mysql...
>
> I installed Python 2.5 and mod_python successfully. I can serve pages 
> with .py extension to http://localhost .
>
> The following for example:
>
> from mod_python import apache
>
> def handler(req):
>     req.write("Hello World!")
>     return apache.OK
>
> Frankly, I don't understand what is going on in the above. 

Exactly what don't you understand. Or ... what DO you understand. There 
is a lot to explain here. Narrowing it down will make it easier.


-- 
Bob Gailer
Chapel Hill NC 
919-636-4239



More information about the Tutor mailing list