Comparison of Python with PHP and Perl?
dsh8290 at rit.edu
Fri Jun 1 20:29:31 CEST 2001
On Fri, Jun 01, 2001 at 07:31:15PM +0200, Andreas Hollmann wrote:
| Is Python able to integrate its code int HTML-Files like PHP does or
| must Python-Scripts be extra files like Perl-Scripts?
There are several choices :
Traditional CGI :
same as writing Perl, but the code is much more readable ;-)
write code like this (indentation is significant, no closing
tags needed -- the dedent fills it in automatically)
data = open( "some_file" , "r" )
for line in data.readlines() :
print data , "<br>"
Zope (DTML) :
you write various code-like tags that can integrate with other
python code, etc.
This looks quite interesting and I am just starting to
More information about the Python-list