
01-22-2006, 09:40 PM
|
|
|
Join Date: Jan 2006
Posts: 35
Благодарил(а): 0 раз(а)
Поблагодарили:
0 раз(а) в 0 сообщениях
|
|
Quote:
Originally Posted by Chris-777
[high]* Chris-777 scratches his head
[/high]
There's a space in the original code snippet I posted, but I put another one in anyhow.
Code:
//Logician Hack:
$page_byte=strlen($output);
//$output=preg_replace ('/\r\n(\s*)/', "\r\n", $output);
$output=preg_replace ('/<!-- .*? -->/',"",$output);
$pagenew_byte=strlen($output);
$page_kilobyte=number_format(($page_byte/1024),2);
$pagenew_kilobyte=number_format(($pagenew_byte/1024),2);
$pagesaved_byte=$page_byte-$pagenew_byte;
$pagesaved_kilobyte=number_format((($pagesaved_byte)/1024),2);
$pagesaved_perc=number_format(((100*$pagesaved_byte)/$page_byte),2);
Still no love from that, I'm still seeing all of my commented stuff.
(Thank you very much for the help btw, ryuji, I appreciate you takin' the time to help me sort this out.  )
|
i meant in your templates... you can remove all the spaces but on my templates it removed code it wasnt supposed to when i did that, best way is to download the whole style and then use a find and replace to add a space to all of them
|