RE: [PHP] stripping white space?

From: Date: Tue, 10 Jul 2001 06:18:17 +0000
Subject: RE: [PHP] stripping white space?
Groups: php.general 
Request: Send a blank email to php-general+get-57086@lists.php.net to get a copy of this message
Here we are talking about our coding styles: When the PHP output is going to be an HTML page, why not getting rid of double quotes with an integer? Even a string is fine, but I just don't feel as confident. I know it makes some very few difference doing so, but I just don't see why not if it is easier for me to develop this way. Give me a valid reason and I'll stop. (I am talking about simple plain HTML, no XML or anything else, just HTML) -maxim maletsky -----Original Message----- From: Mark Charette [mailto:charette@sneezy.org] Sent: Tuesday, July 10, 2001 3:09 PM To: php-general@lists.php.net Subject: Re: [PHP] stripping white space? From: "Maxim Maletsky" <maxim@japaninc.com> To: <NavidYar2@home.com>; <php-general@lists.php.net> Sent: Tuesday, July 10, 2001 1:05 AM Subject: RE: [PHP] stripping white space? > I think it IS a good practice > if you only practicing HTML to be outputted by PHP. Why, if you know that it's illegal XHTML and XML, would you ever conclude that it's _good_ practice to break the rules? Saving 20 or 30 bytes/page? If you really want some space saving on many browsers and you're running Apache why not just install the zlib package? Effective throughtput on my (over 100,000) pages on my site jumped 8-fold for those people able to receive and decode zlib-compressed pages, and I didn't have to change anything ... Mark C. -- 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 (#57086) next »