Re: Python v PHP for web, and restarting Apache?

2006-11-19 Thread Bruno Desthuilliers
walterbyrd a écrit :
 Fredrik Lundh wrote:
 
 
modularity, modularity, and modularity.

 
 
 Can't PHP be made to be just as modular?

PHP has no notion of modules.

 As a matter of popular practise, I suppose that is not done. I would
 think that it could be.

Certainly not the way Python is modular...

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Python v PHP for web, and restarting Apache?

2006-11-18 Thread gavino


On Nov 17, 4:46 pm, [EMAIL PROTECTED] wrote:
 On Nov 17, 12:07 pm, walterbyrd [EMAIL PROTECTED] wrote:

  I think I have read somewhere that using Python to develop
  web-applications requires some restarting of the Apache server, whereas
  PHP does not.It depends what you do. CGI's operate much like PHP. 
  mod_python has
 auto-reloading (and by implication most frameworks that build on it.) A
 poorly designed web application may require a restart. (Some people
 also disable auto-reload for production servers for performance
 advantages.)

  Also, I seem to remember reading something about PHP being able to
  recover from Apache restarting  more easily than Python.I can think of no 
  reason why that would be true. Perhaps these are
 poorly designed python applications?

  I am not trying to suggest anything here. I'm just asking.Ask away. The 
  only bad question is an unasked question. Most of us can
 act like adults here (although we all forget that from time to time.)

 Python is much better suited to writing and mainting large web
 applications though. Being both an experienced php and python
 programmer, I can tell you I don't use php any more unless I have no
 other choice.

 -Sandra

Sandra do you us ethe msot up to date php and python?
how fast is fastcgi v mod_python?
Have you ever used medusa? or some other python server directly?

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Python v PHP for web, and restarting Apache?

2006-11-18 Thread walterbyrd

[EMAIL PROTECTED] wrote:


 Python is much better suited to writing and mainting large web
 applications though.


I have to ask: why is that? Because Python is more readable? Because
Python runs faster? Is Python more stable for large scale applications?
Does this apply when using Python with CGI, FastCGI, mod_python, or
what?

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Python v PHP for web, and restarting Apache?

2006-11-18 Thread Fredrik Lundh
walterbyrd wrote:

 Python is much better suited to writing and mainting large web
 applications though.
 
 I have to ask: why is that?

modularity, modularity, and modularity.

/F

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Python v PHP for web, and restarting Apache?

2006-11-18 Thread walterbyrd

Fredrik Lundh wrote:


 modularity, modularity, and modularity.


Can't PHP be made to be just as modular?

As a matter of popular practise, I suppose that is not done. I would
think that it could be.

My big problem with PHP is the lack of backward compatibility. My big
problem with Python is that  popular frameworks like django and
turbogears have sky-high system requirements. Few web-hosters have
Apache 2.X, mod_python 3.x, FastCGI, or Python 2.4.

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Python v PHP for web, and restarting Apache?

2006-11-17 Thread Marc 'BlackJack' Rintsch
In [EMAIL PROTECTED], walterbyrd
wrote:

 I am not trying to suggest anything here. I'm just asking.

Asking what?  Asking something usually involves a question.  ;-)

Ciao,
Marc 'BlackJack' Rintsch
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Python v PHP for web, and restarting Apache?

2006-11-17 Thread gabor
walterbyrd wrote:
 I think I have read somewhere that using Python to develop
 web-applications requires some restarting of the Apache server, whereas
 PHP does not.
 

first thing... there are many many ways how to run a python-apache web 
application..

- mod_python
- cgi
- fastcgi
- sci
- proxy

also the same way, for php:
- mod_php
- fastcgi
- cgi
- (maybe something more, i'm not much experienced with php)

so first you should tell us which python-solution would you like to 
compare to which php-solution..


gabor
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Python v PHP for web, and restarting Apache?

2006-11-17 Thread Michael Ströder
walterbyrd wrote:
 I think I have read somewhere that using Python to develop
 web-applications requires some restarting of the Apache server, whereas
 PHP does not.

Using Python to develop web-applications is a very broad topic.

E.g. you don't have to restart Apache if you develop simple
short-running CGI-BIN programs. With a long-running web app (e.g. with
FastCGI) you might only kill the web app's process etc. Or you implement
a graceful restart in your web app or...

 Also, I seem to remember reading something about PHP being able to
 recover from Apache restarting  more easily than Python.

As usual it depends.

Ciao, Michael.
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Python v PHP for web, and restarting Apache?

2006-11-17 Thread sandra . eloff
On Nov 17, 12:07 pm, walterbyrd [EMAIL PROTECTED] wrote:
 I think I have read somewhere that using Python to develop
 web-applications requires some restarting of the Apache server, whereas
 PHP does not.

It depends what you do. CGI's operate much like PHP. mod_python has
auto-reloading (and by implication most frameworks that build on it.) A
poorly designed web application may require a restart. (Some people
also disable auto-reload for production servers for performance
advantages.)

 Also, I seem to remember reading something about PHP being able to
 recover from Apache restarting  more easily than Python.

I can think of no reason why that would be true. Perhaps these are
poorly designed python applications?

 I am not trying to suggest anything here. I'm just asking.

Ask away. The only bad question is an unasked question. Most of us can
act like adults here (although we all forget that from time to time.)

Python is much better suited to writing and mainting large web
applications though. Being both an experienced php and python
programmer, I can tell you I don't use php any more unless I have no
other choice.

-Sandra

-- 
http://mail.python.org/mailman/listinfo/python-list