[newbie] Equivalent to PHP?

Chris Angelico rosuav at gmail.com
Tue Jun 12 08:01:10 EDT 2012


On Tue, Jun 12, 2012 at 8:36 PM, Gilles <nospam at nospam.com> wrote:
> Thanks for the input.
>
> But I read that PHP-based heavy-duty web servers compile the scripts
> once and keep them in a cache, so they don't have to be
> read/parsed/executed with each new query.
>
> In that case, what is the benefit of using a long-running process in
> Python?

Apache's mod_php partially evens out the difference, but not
completely, and of course, it's perfectly possible to write a dispatch
loop in PHP, as Octavian said.

Python is a far better language than PHP, I would strongly recommend
making use of it if you can.

ChrisA



More information about the Python-list mailing list