I have a site designed using PHP and HTML, with some javascript. My ISP has PHP set up as a CGI. All of this is on a Linux box, BTW, if that makes a difference. I'm kinda still new to PHP. I can code it, but some of the deeper aspects like this I'm not real sure about.
Is it worth my time to try to get rid of EVERY possible 'echo <whatever>....' line in my php scripts? I mix PHP and HTML a lot (obviously), but I wonder if it would be better to:
Let the parser do the work of echoing my html, since it's already running anyway, therefore saving the server the trouble of starting the parser 20 times if there are 20 PHP blocks in the script. Or,
Hard code the static parts of the HTML as much as I possibly can, avoiding the possible degradation in performance of letting the parser do the work.
I hope I'm relaying this problem properly.
Thanks for any help.