Very interesting, that code only seems to work within the browser. The source is still cascading when opened/remade, but the browser output is changed (though it still doesn't look like what I'm after). I can't see a use for this currently, but thanks anyways. I combined your code with fopen/fwrite/fclose. Here's what it looks like.
PHP Code:
<?
$file = "tman.html";
$file_contents = file_get_contents ($file);
$string_without_newline = ereg_replace('\n', '', $file_contents);
$np = "tman.txt";
$o = fopen($np,'w');
fwrite($o, $string_without_newline);
fclose($o);
?>