All fixed! Tested it and it preserves the javascript while stripping the HTML. Doesn't hang anymore on my setup...which was the result of a stupid coding mistake. :P
Code:
<?php ini_set('zlib.output_compression', 'Off'); // Turn off zlib compression, if On, to prevent Mozilla output problems. ?> Let me know if you notice anything else that needs fixing. Enjoy! |
I'll test soon.
Thanks NuAlpha, it's a great mod if we get it working right. :) |
Minor update:
Replace the code: Code:
# Pad with 256 bytes for Internet Explorer to show output immediately. ...with: Code:
# Pad with 256 bytes for Internet Explorer to show output immediately. :wink: |
Potential bug that needs fixing...
Replace: Code:
<?php ini_set('zlib.output_compression', 'Off'); // Turn off zlib compression, if On, to prevent Mozilla output problems. ?> With: Code:
<?php That terminating PHP tag on the same line as the comment can cause problems. |
Just ran this on our latest HTML catalog. Stripped a total of 14,606,179 excess white spaces from all of the catalog files. Javascript was left untouched and everything seems to work great! 8)
|
Works with my java pop stuff, it's relatively fast and the script terminates properly with the report at the end.
This includes all of the bug fixes and updates up to the time of this post. Using version 3.4.14. GREAT JOB NUALPHA! Code:
<?php |
Anyone wanna tell me why I am getting this error? The only thing I have changed is my directory path???
Quote:
|
never mind, i figured it out, and with a total of 1,111,686 excess white spaces removed from my code.
wow, cudos bro, much appreciated mod, hope i can pay ya back later... |
Quote:
Welcome! :wink: |
Quote:
Hi jburba2000, I hit the same problem and wonder if you could let me know how you fixed it. Thanks. |
All times are GMT -8. The time now is 04:04 AM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.