PHP vs. Python/comp.lang.php?

phil hunt philh at
Fri Nov 30 05:01:31 CET 2001

On Thu, 29 Nov 2001 15:18:32 -0700, Bill Anderson <anderson at> wrote:
>In article <slrn9vqeip.2vt.ssthapa at>, "Suchandra Thapa"
><ssthapa at> wrote in part:
>>>Furthermore PHP kind of forces you to write web-apps in one way with
>>>presentation and logic mixed. Also when your web-apps can do all the
>>>standard fare that is the staple of PHP you will suddenly need some
>>>feature that's not available in PHP. Then it is  much easier to use the
>>>Python standard library to roll your own solution.
>> 	Actually, there are template based packages for php, and it isn't
>> too difficult to create a new template handling class if you don't like
>> the existing ones.  To be fairly, a standard python cgi will also force
>> you to mix presentation and logic since all your html will be in print
>> or stdout.write statements inside your script.
>Not true. There are likewise a number of templating packages for Python that
>allowing you to "keep 'em separated".

And in any case it is trivial to write your own in python; the %(varName)s
syntax is your friend.

*** Philip Hunt *** philh at ***

More information about the Python-list mailing list