On Tue, Jan 11, 2011 at 14:13, Richard S. Crawford <richard@xxxxxxxxxxxxx> wrote: > > $content = str_replace(chr(13),$content) > > and > > $content = str_replace(array('\n','\r','\r\n'),$content) Neither of these have replacement values, which might just be a typo. However, the larger issue is in the single (literal) quotes in the second example. Change that to: $content = str_replace(array("\n","\r","\r\n"),'',$content); If you're ambitious, you can try the FileConv PHP extension available here: http://links.parasane.net/dxdv -- </Daniel P. Brown> Network Infrastructure Manager Documentation, Webmaster Teams http://www.php.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php