Forum Moderators: coopster

Message Too Old, No Replies

PHP function to remove whitespaces, breaks and tabs from HTML

         

Habtom

10:24 am on Jun 25, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Is there any PHP function which removes whitespaces, brakes, tabs in HTML, thereby increasing the loading speed of the html page.

Any suggestions welcome.

Habtom

Habtom

1:46 pm on Jun 25, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I got solved. It is much like the post here:
[webmasterworld.com...]

Please drop a line if you know more way of doing it.

Habtom

coopster

9:59 pm on Jun 26, 2006 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



PHP5 has a nice function to do this for your PHP source code, php_strip_whitespace [php.net]. The User Contributed notes on this page might also interest you.