Hi,

Friday, April 16, 2004, 2:48:03 AM, you wrote:
CWP> Arthur Radulescu <mailto:[EMAIL PROTECTED]>
CWP>     on Thursday, April 15, 2004 4:48 AM said:

>> Not exactly... I was not reffering to PHP files... The white spaces
>> from a template file will make double the size of certain files when
>> they are sent to the browser... So a page of 50 k might have 100 K
>> because of those white spaces instead of tabs... For a dial up
>> connection this means a lot even if you are not google...

CWP> can someone confirm this? this sounds totally wrong. but the again i
CWP> don't work with templates (yet) so i have no idea!

CWP> ON THE OTHER HAND

CWP> if you're referring to the html that is sent to the browser don't use
CWP> the tab key use the space bar. imho tab indented html is very ugly!

This bit of code

<table>
         <tr>
                <td>
                        Hello world
                </td>
        </tr>
</table>

has about 44 chars, 7 line feeds and 9 tabs = 60 bytes
with 4 spaces/tab thats 54 spaces = 100 bytes
and the default of 8 (what clown came up with that one I wonder..maybe
they had very small spaces) thats 72 spaces for a total of 123 bytes -
over double. So Arthur is probably correct.

-- 
regards,
Tom

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to