View Single Post
Old 06-08-2005, 11:21 AM   #5 (permalink)
morpheuz
Code Monkey
 
Join Date: Feb 2005
Posts: 64
morpheuz is on a distinguished road
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);
?>
morpheuz is offline   Reply With Quote