Re: mixing HTML and PHP code

From: Date: Fri, 12 Jan 2001 01:51:17 +0000
Subject: Re: mixing HTML and PHP code
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-34186@lists.php.net to get a copy of this message
the central point behind all this html-mixing-php stuff is this: _if_ you are going to release code to a population of developers, and you hope that it will be useful to them - that code must be flexible enough for an individual developer to change it to suit their needs. let's assume you're working on a site, where there are php coders, and html people: _every_single_ html production person prefers to have code embedded in html, not the reverse. As soon as you embed html in code, the html production staff has to do a significant amount of work to extract that markup from you code - and that process is prone to error. I know that from long experience with perl apps, jsp, cfml, php, etc. The entire point behind these "web-oriented" scripting languages is to _avoid_ mixing markup with logic to the extent possible - which facilitates quick "style" changes to markup, while avoiding problems with html production staff screwing up code. Whatever your production process, whether you are a lone developer, or working within a large commercial web development team: if you intend to release your codek, the more flexible you can make your application, the better. That includes facilitating quick changes to all of the markup associated with your application. echoing large chunks of that markup does not achieve the latter. best, _alex -- Alex Black, Head Monkey enigma@turingstudio.com The Turing Studio, Inc. http://www.turingstudio.com vox+510.666.0074 fax+510.666.0093 Saul Zaentz Film Center 2600 Tenth St Suite 433 Berkeley, CA 94710-2522 > From: Jason.Murray@melbourneit.com.au (Jason Murray) > Newsgroups: php.general > Date: 11 Jan 2001 16:33:19 -0800 > Subject: RE: [PHP] mixing HTML and PHP code > >> it's valid to use single-quotes, double-quotes, or NO quotes. > > If you're going to use no quote, make damn sure you don't have any > spaces :) > > Jason > > -- > Jason Murray > jasonm@melbourneit.com.au > Web Design Team, Melbourne IT > Fetch the comfy chair! > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net >

« previous php.general (#34186) next »