[ciapug] Peer review of PHP code

Claus ciapug@cialug.org
Tue, 13 Apr 2004 10:43:43 -0500


On 4/12/2004 4:28 PM, Barry Von Ahsen wrote:

> I personally turn the interpreter on and off as necessary (ie. not 
> writing html with php), but that's a personal preference (plus then the 
> syntax checker checks the html syntax, not the php).  I know this was 
> bad performance-wise with ASP2.0/IIS4, but I haven't heard of any 
> problems with php.

I've been arguing about this with myself a bit, too.  Somehow the 
consistant use of php appealed to me better than going in and out of 
PHP.  Especially since that page is more logic driven.

The page that actually presents the newsletters to the viewer is HTML 
with PHP embedded.  There the program/parse flow is straight forward.

As far as HTML syntax checker goes, I would run them after the web 
server has parsed/served the page since that's what is actually passed 
to the browser.  But the reality is that I never bother with syntax 
checkers.  My most advanced HTML tag is the <table> tag.  Never really 
had time to embrace the CSS front although it looks promising.

   Claus