Hi, Friday, April 16, 2004, 3:06:09 AM, you wrote: TR> Hi,
TR> 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! TR> This bit of code TR> <table> TR> <tr> TR> <td> TR> Hello world TR> </td> TR> </tr> TR> </table> TR> has about 44 chars, 7 line feeds and 9 tabs = 60 bytes TR> with 4 spaces/tab thats 54 spaces = 100 bytes TR> and the default of 8 (what clown came up with that one I wonder..maybe TR> they had very small spaces) thats 72 spaces for a total of 123 bytes - TR> over double. So Arthur is probably correct. TR> -- TR> regards, TR> Tom its 3am I should buy a calculator :) at 4 spaces per tab it is 36 for a total of 52 bytes doing eregi_replace on line feeds will probably screw up the html, you at least need to replace them with a space which kinda defeats the object of the exercise... -- regards, Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php