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