View Single Post
  #43  
Old 01-05-2005, 04:52 PM
  Stephen Hatton's Avatar 
Stephen Hatton Stephen Hatton is offline
 

Senior Member
  
Join Date: Mar 2004
Location: Melbourne, Australia
Posts: 182
 

Default Flying

Hi All

Thanks NuAlpha, the script rocks and burns the ethernet hwy.

Your answer gave me clues on the path name - I have a host (and not my own server), so I normally don't use that path name normally.
Here is a summary of what your script did (for others to see):
It took 150seconds to clean up the files (the failed ones were 0 Byte files that are pages not completed yet)

************************************************** ****************************
************************************************** ****************************
Stripping the HTML files of excess spaces...
|||||||||||||||||||||||||||||||||||||||||||||||||| |||||||||||||||||||||||||||||||||||||||||||||||||| |||||||||||||||||||||||||||||||||||||||||||||||||| |||||||||||||||||||||||||||||||||||||||||||||||||| |||||||||||||||||||||||||||||||||||||||||||||||||| |||||||||||||||||||||||||||||||||||||||||||||||

There were 900 successful cleanings and 288 failures out of a total of 1,188 files.

Your HTML Catalog files had a total combined length of 172,069,659 characters.
They now have a total length of 162,685,621 characters.
That is a total of 9,384,038 excess white spaces removed from your files.


The following files could not be written to:
---- it then lists all the files that couldn't be cleaned ------
************************************************** ****************************
************************************************** ****************************


After removing the 0 byte files, it took a total 35 seconds to do second time.

************************************************** ****************************
************************************************** ****************************
Stripping the HTML files of excess spaces...
|||||||||||||||||||||||||||||||||||||||||||||||||| |||||||||||||||||||||||||||||||||||||||||||||||||| |||||||||||||||||||||||||||||||||||||||||||||||||| |||||||||||||||||||||||||||||||||||||||||||||||||| |||||||||||||||||||||||||

There were 900 successful cleanings and 0 failures out of a total of 900 files.

Your HTML Catalog files had a total combined length of 162,164,288 characters.
They now have a total length of 162,164,288 characters.
That is a total of 0 excess white spaces removed from your files.
************************************************** ****************************
************************************************** ****************************

The site is not finished and all the pages have not been completed (I have a lot of hidden pages). Thats why 0byte files exist.

It compares well with all the compression methods I have tried on my site
(approximately 10% or more comression), but the HTML files load a lot quicker than the direct shopping cart queries.

It is so fast, I wouldn't bother with the manual method any more (over a 1200 files!): Your program is too hot .

For everbody else: It is THE SCRIPT TO GET to clean up your HTML files.

Great Job

Regards
Ing. Stephen Hatton
__________________
Apache Linux V1.3.33
PERL version: 5.8.0
PHP version: 4.3.11
MySQL version: 4.0.22-standard
X-cart V4.0.17: Addons: X-PConfig, X-Giftreg, X-Fancycat, X-AOM
Reply With Quote