[thelist] PHP inside or outside?

Joao Verde verde at sardware.com
Sat Apr 24 06:16:17 CDT 2004


Fellow evoltians :) ,

Probably since I began programming in PHP I started to make my PHP files "all-PHP" from start to end, echoing HTML inside PHP. Somehow it "feels" better to me, seems logical and cleaner.

Anyway, I recently had to work on another person's HTML including my own pieces of code where needed and that made me wonder: what is quicker for the parser? Having one single block of PHP code with HTML being echoed (echo with single quotes) or, by contrast, having all HTML with pieces of PHP code where needed?

Should the difference be irrelevant, what, to you, seems to be the best practice?

jcv

:: www.origamis.net | Origame a sua informação | icq#26527125
:: 24-04-2004 12:10:06 | 38º45'22N 9º16'01W 147m 
:: Beam me up another Wave Rider Packet!



More information about the thelist mailing list