[newbie] Equivalent to PHP?

Chris Angelico rosuav at gmail.com
Tue Jun 12 06:18:21 EDT 2012


On Tue, Jun 12, 2012 at 7:39 PM, Gilles <nospam at nospam.com> wrote:
> Since web scripts are usually very short anyway (user sends query,
> server handles request, sends response, and closes the port) because
> the user is waiting and browsers usually give up after 30 seconds
> anyway... why did Python solutions go for long-running processes while
> PHP was built from the start as short-running processes?

Think of it as Apache + PHP versus Python. Apache keeps running, it's
only your PHP script that starts and stops. With a long-running
process, you keep everything all in together, which IMHO is simpler
and better.

ChrisA



More information about the Python-list mailing list