[Tutor] Python equiv to PHP "include" ?

Alan G alan.gauld at freenet.co.uk
Thu Sep 29 19:52:23 CEST 2005

>> can't use import because then Python would try to parse the HTML 
>> from the
>> imported file.
> I thought PHP also parsed any html rendered through an included 
> file?

It does but PHP 'understands' HTML - or more specifically ignores it!

Alan G. 

More information about the Tutor mailing list