dalaij Posted October 30, 2006 Posted October 30, 2006 Good evening, I am looking for some contribution or tip on how to eliminate all the extra whitespaces, tab characters and new lines (return-characters) from the html-output that is generated by my osC site. I've been browsing the forums and i found was some code (Chemos compress_buffer) that seems like it would do it, but this is only presented to be used with the gzip compression. My webhotel does not give me the option of gzip compression and thus I would like to be able to use this function without the gzip compression. But how to do it? Any tips? Cheers, anders
KennethS Posted October 30, 2006 Posted October 30, 2006 Good evening, I am looking for some contribution or tip on how to eliminate all the extra whitespaces, tab characters and new lines (return-characters) from the html-output that is generated by my osC site. I've been browsing the forums and i found was some code (Chemos compress_buffer) that seems like it would do it, but this is only presented to be used with the gzip compression. My webhotel does not give me the option of gzip compression and thus I would like to be able to use this function without the gzip compression. But how to do it? Any tips? Cheers, anders I'm not aware of a program that does this instantly. You could however use the Simple Template System then modify your template to be like that. Then you could do things that arent included otherwise by hand. Kenneth S -------------- Customer "Are you a real programmer?" Me "No, but I did stay at a Holiday Inn Express last night"
dalaij Posted October 30, 2006 Author Posted October 30, 2006 Hmm... I already have the sts template system installed and deleting the blank spaces and extra "unneccerary" things there certainly will speed some things up. But most of the output to the final html-layout is generated by php code elesewhere. My understanding of the way osc works is still rather limited, and I guess what i am really looking for is the function/class (if exists at all i do not know) that parses all the code and finally sends it out as parsed html. The i could just add some str_replace to delete all the blank spaces, tabs and empty rows. Any one knows about such a function? Or has an idea about how to create one? I guess I could just modify the gzip_compress function to do not gzip_compression, but to ONLY delete all the unwanted characters. However, I do manage to get this working...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.