Re: Why PHP is so much more popular for web-development

2007-07-27 Thread SamFeltus
I don't suggest Python is unconcerned with the casual user and the end user, only that this is where PHP's community excels. Learnig both as a newbie, I actually found PHP more confusing and difficult than Python. Programming in PHP reminds me of a game of trivial pursuit. Once you know a little

Re: Why PHP is so much more popular for web-development

2007-07-27 Thread Jon Ribbens
On 2007-07-26, Steve Holden <[EMAIL PROTECTED]> wrote: >> That sounds trivial to ameliorate (at least somewhat) by putting your >> uploads in a directory whose name is known only to you (let's say it's >> a random 20-letter string). The parent directory can be protected to >> not allow reading the

Re: Why PHP is so much more popular for web-development

2007-07-26 Thread Bruno Desthuilliers
SamFeltus a écrit : > PHP is just a more inclusive community. The PHP community is more > concerned with the casual user and the end user. This is PHP's core > strength, and one of Python's core weaknesses. The Python community > would be wise to adopt PHP's concern for the end user. This asse

Re: Why PHP is so much more popular for web-development

2007-07-26 Thread Paul Rubin
"Chris Mellon" <[EMAIL PROTECTED]> writes: > Would you make this directory name be the username+the password? If > not, why not? The answer is the same reason why this isn't a reliable > method of security. I would not store plaintext passwords in a database, but that doesn't mean it's security by

Re: Why PHP is so much more popular for web-development

2007-07-26 Thread Chris Mellon
On 26 Jul 2007 13:26:33 -0700, Paul Rubin <"http://phr.cx"@nospam.invalid> wrote: > Steve Holden <[EMAIL PROTECTED]> writes: > > > That sounds trivial to ameliorate (at least somewhat) by putting your > > > uploads in a directory whose name is known only to you (let's say it's > > > a random 20-let

Re: Why PHP is so much more popular for web-development

2007-07-26 Thread Paul Rubin
Steve Holden <[EMAIL PROTECTED]> writes: > > That sounds trivial to ameliorate (at least somewhat) by putting your > > uploads in a directory whose name is known only to you (let's say it's > > a random 20-letter string). The parent directory can be protected to > > not allow reading the subdirect

Re: Why PHP is so much more popular for web-development

2007-07-26 Thread Steve Holden
Paul Rubin wrote: > Jeffrey Froman <[EMAIL PROTECTED]> writes: >> Consider a PHP-based CMS that allows users to upload files. Because the >> application runs as the webserver user, uploaded files, and the directory >> where they reside, must be accessible and writable by that user. It is the >> sam

Re: Why PHP is so much more popular for web-development

2007-07-26 Thread Paul Rubin
Jeffrey Froman <[EMAIL PROTECTED]> writes: > Consider a PHP-based CMS that allows users to upload files. Because the > application runs as the webserver user, uploaded files, and the directory > where they reside, must be accessible and writable by that user. It is the > same user that any other ho

Re: Why PHP is so much more popular for web-development

2007-07-26 Thread SamFeltus
PHP is just a more inclusive community. The PHP community is more concerned with the casual user and the end user. This is PHP's core strength, and one of Python's core weaknesses. The Python community would be wise to adopt PHP's concern for the end user. That being said, I don't think you wil

Re: Why PHP is so much more popular for web-development

2007-07-26 Thread Jeffrey Froman
walterbyrd wrote: > The point is: PHP framework makers are very considerate of the > realities of shared hosting. I think the opposite is true: PHP applications typically ignore the realities of shared hosting in order to be considerate to non-developers (that is to say, "users"). In particular,

Re: Why PHP is so much more popular for web-development

2007-07-26 Thread Roel Schroeven
Jeff schreef: > No programming language can fix bad programmers. And if cost is an > issue, www.nearlyfreespeech.net has Python, clisp, and OCaml. But only via CGI, which means every request results in a new instance of the interpreter. -- If I have been able to see further, it was only becaus

Re: Why PHP is so much more popular for web-development

2007-07-26 Thread Bruno Desthuilliers
walterbyrd a écrit : > On Jul 22, 12:17 am, Bruno Desthuilliers > <[EMAIL PROTECTED]> wrote: > >> Either you are a casual user with 101 web >> development skills trying to set up your personal home page > > But this, sort of, brings me back to my original point. Nobody starts > out being advanced

Re: Why PHP is so much more popular for web-development

2007-07-26 Thread Steve Holden
walterbyrd wrote: > On Jul 22, 12:17 am, Bruno Desthuilliers > <[EMAIL PROTECTED]> wrote: > >> Either you are a casual user with 101 web >> development skills trying to set up your personal home page > > But this, sort of, brings me back to my original point. Nobody starts > out being advanced. T

Why PHP is so much more popular for web-development

2007-07-26 Thread matt westerburg
Why are you praising PHP on a python mailing list are you trying to start a flame war? (Not evaluating PHP as a language), our company just switched over to using Django and my has it saved us time, and we can organize our code its really beautiful. PHP is full of new to programming users and thu

Re: Why PHP is so much more popular for web-development

2007-07-26 Thread walterbyrd
On Jul 22, 12:17 am, Bruno Desthuilliers <[EMAIL PROTECTED]> wrote: > Either you are a casual user with 101 web > development skills trying to set up your personal home page But this, sort of, brings me back to my original point. Nobody starts out being advanced. There are substantial difference

Re: Why PHP is so much more popular for web-development

2007-07-26 Thread Bruno Desthuilliers
walterbyrd a écrit : > On Jul 25, 12:40 pm, Carsten Haese <[EMAIL PROTECTED]> wrote: > > >>What exactly could Python learn from PHP? > > > Remember, I'm a noob, I'm not trolling. > > When I posted "Python" I meant the Python web-developement world. In > particular, python frameworks, like Cher

Re: Why PHP is so much more popular for web-development

2007-07-26 Thread paul
Carsten Haese schrieb: >> Also, PHP, and PHP frameworks, are supported everywhere. If you going >> to use a PHP MVC framework, like codeignitor, you would have a hard >> time finding a hoster that didn't support it - all you need is php4 >> and mysql. Dollar-hosting, for $10 a year, should work jus

Re: Why PHP is so much more popular for web-development

2007-07-25 Thread Jeff McNeil
On 7/25/07, Steve Holden <[EMAIL PROTECTED]> wrote: > Jeff McNeil wrote: > > Unfortunately, I also find that PHP programmers are usually more > > plentiful than their Python counterparts. When thinking of staffing > > an organization, it's common to target a skill set that's cheaper to > > employ

Re: Why PHP is so much more popular for web-development

2007-07-25 Thread Jeff
No programming language can fix bad programmers. And if cost is an issue, www.nearlyfreespeech.net has Python, clisp, and OCaml. -- http://mail.python.org/mailman/listinfo/python-list

Re: Why PHP is so much more popular for web-development

2007-07-25 Thread walterbyrd
On Jul 25, 3:55 pm, Steve Holden <[EMAIL PROTECTED]> wrote: > Jeff McNeil wrote: > > Unfortunately, I also find that PHP programmers are usually more > > plentiful than their Python counterparts. When thinking of staffing > > an organization, it's common to target a skill set that's cheaper to >

Re: Why PHP is so much more popular for web-development

2007-07-25 Thread Steve Holden
Jeff McNeil wrote: > Unfortunately, I also find that PHP programmers are usually more > plentiful than their Python counterparts. When thinking of staffing > an organization, it's common to target a skill set that's cheaper to > employ and easier to replace down the road if need be. > Right, that

Re: Why PHP is so much more popular for web-development

2007-07-25 Thread Steve Holden
walterbyrd wrote: > On Jul 25, 2:12 pm, Carsten Haese <[EMAIL PROTECTED]> wrote: > >> Also, CherryPy's requirements are very >> minimal. > > In terms of memory and CPU, maybe. But I think that *requires* apache > 2.x and a very recent version of mod_python. By web-hosting > standards, those are

Re: Why PHP is so much more popular for web-development

2007-07-25 Thread Steve Holden
Carsten Haese wrote: > On Wed, 2007-07-25 at 10:42 -0700, walterbyrd wrote: >> "Once you start down the Dark path, forever will it dominate your >> desiny. Consume you, it will." >> - Yoda >> >> I'm fairly new to web-development, and I'm trying out different >> technologies. Some people wonder why

Re: Why PHP is so much more popular for web-development

2007-07-25 Thread Daniel
On Wed, 25 Jul 2007 20:42:54 +0300, walterbyrd <[EMAIL PROTECTED]> wrote: > I'm fairly new to web-development, and I'm trying out different > technologies. Some people wonder why PHP is so popular, when the > language is flawed in so many ways. To me, it's obvious: it's because > it's much easie

Re: Why PHP is so much more popular for web-development

2007-07-25 Thread Carsten Haese
On Wed, 2007-07-25 at 13:55 -0700, walterbyrd wrote: > On Jul 25, 2:12 pm, Carsten Haese <[EMAIL PROTECTED]> wrote: > > > Also, CherryPy's requirements are very > > minimal. > > In terms of memory and CPU, maybe. But I think that *requires* apache > 2.x and a very recent version of mod_python.

Re: Why PHP is so much more popular for web-development

2007-07-25 Thread walterbyrd
On Jul 25, 2:12 pm, Carsten Haese <[EMAIL PROTECTED]> wrote: > Also, CherryPy's requirements are very > minimal. In terms of memory and CPU, maybe. But I think that *requires* apache 2.x and a very recent version of mod_python. By web-hosting standards, those are very steep requirements. -- h

Re: Why PHP is so much more popular for web-development

2007-07-25 Thread walterbyrd
On Jul 25, 2:10 pm, Jeff <[EMAIL PROTECTED]> wrote: > I can tell you exactly why PHP > is so popular: it acts as an extension of HTML and is syntactically > similar to Perl. > Although, that can lead to problems, if you're not careful: Perl: my $x = 5 + 9000 || 1; # $x is 9005 PHP: $x = 5 + 900

Re: Why PHP is so much more popular for web-development

2007-07-25 Thread Jeff
I'm an ex-PHP programmer (well, I still have to use some PHP at work, but I don't tell anyone that at parties) who now uses Python or Lisp wherever possible for web development. I can tell you exactly why PHP is so popular: it acts as an extension of HTML and is syntactically similar to Perl. PHP

Re: Why PHP is so much more popular for web-development

2007-07-25 Thread Carsten Haese
On Wed, 2007-07-25 at 12:34 -0700, walterbyrd wrote: > On Jul 25, 12:40 pm, Carsten Haese <[EMAIL PROTECTED]> wrote: > > > What exactly could Python learn from PHP? > > Remember, I'm a noob, I'm not trolling. I know. > When I posted "Python" I meant the Python web-developement world. In > parti

Re: Why PHP is so much more popular for web-development

2007-07-25 Thread Paul McNett
Steve Holden wrote: > When someone starts to push the limits of PHP they either continue to > push until they get where they want to be (producing an ugly or > ill-maintained bunch of code along the way) or they choose a more > appropriate tool. > > The latter behavior is typical of programmers

Re: Why PHP is so much more popular for web-development

2007-07-25 Thread Christoph Haas
On Wed, Jul 25, 2007 at 12:34:08PM -0700, walterbyrd wrote: > When I posted "Python" I meant the Python web-developement world. In > particular, python frameworks, like CherryPy, have requirements that > are not realistic for most shared hosting plans. It's true that the requirements are higher th

Re: Why PHP is so much more popular for web-development

2007-07-25 Thread walterbyrd
On Jul 25, 12:40 pm, Carsten Haese <[EMAIL PROTECTED]> wrote: > What exactly could Python learn from PHP? Remember, I'm a noob, I'm not trolling. When I posted "Python" I meant the Python web-developement world. In particular, python frameworks, like CherryPy, have requirements that are not real

Re: Why PHP is so much more popular for web-development

2007-07-25 Thread Brian Jones
Steve Holden wrote: > walterbyrd wrote: > >> "Once you start down the Dark path, forever will it dominate your >> desiny. Consume you, it will." >> - Yoda >> >> I'm fairly new to web-development, and I'm trying out different >> technologies. Some people wonder why PHP is so popular, when the >

Re: Why PHP is so much more popular for web-development

2007-07-25 Thread Gregor Horvath
walterbyrd schrieb: > Don't get me wrong: I am not saying that PHP is better than Python for > web-development. But, I sometimes think that Python could learn a few > things from PHP. Yes, indeed we can learn that popularity is not superiority. ;-) Gregor -- http://mail.python.org/mailman/listi

Re: Why PHP is so much more popular for web-development

2007-07-25 Thread Jeff McNeil
Unfortunately, I also find that PHP programmers are usually more plentiful than their Python counterparts. When thinking of staffing an organization, it's common to target a skill set that's cheaper to employ and easier to replace down the road if need be. Also, larger hosting shops are hesitant

Re: Why PHP is so much more popular for web-development

2007-07-25 Thread Carsten Haese
On Wed, 2007-07-25 at 10:42 -0700, walterbyrd wrote: > "Once you start down the Dark path, forever will it dominate your > desiny. Consume you, it will." > - Yoda > > I'm fairly new to web-development, and I'm trying out different > technologies. Some people wonder why PHP is so popular, when the

Re: Why PHP is so much more popular for web-development

2007-07-25 Thread Diez B. Roggisch
> Before you can even get started with Python web-development, you have > to understand this entire alphabit soup of: CGI, FASTCGI, MOD_PYTHON, > FLUP, WSGI, PASTE, etc. For me, configuring fastcgi has been the most > difficult part of getting django to work. PHP developers don't have to > bother w

Re: Why PHP is so much more popular for web-development

2007-07-25 Thread Steve Holden
walterbyrd wrote: > "Once you start down the Dark path, forever will it dominate your > desiny. Consume you, it will." > - Yoda > > I'm fairly new to web-development, and I'm trying out different > technologies. Some people wonder why PHP is so popular, when the > language is flawed in so many way

Why PHP is so much more popular for web-development

2007-07-25 Thread walterbyrd
"Once you start down the Dark path, forever will it dominate your desiny. Consume you, it will." - Yoda I'm fairly new to web-development, and I'm trying out different technologies. Some people wonder why PHP is so popular, when the language is flawed in so many ways. To me, it's obvious: it's bec