I did a text replace to print the CR/LF comands and compare the MAC vs. the DOS files--the Mac file only shows \r and the Dos file shows \r\n. But, when I do a replace and either turn all the \r\n to \n (since the Mac version works), or simply kill all the \n (or all the \n and all the \r), the preg_replace STILL only works on the Mac version. Are there other hiddens I can check for--I didn't find any \t chars.
My modification, which DID NOT work:
$text=str_replace("\r\n","\r",$text);
$text = preg_replace("/<head[>]?>.?<\/head>/si","",$text);
the alsofails:
$text=str_replace("\r","",$text);
$text=str_replace("\n","",$text);
$text = preg_replace("/<head[>]?>.?<\/head>/si","",$text);
$text=str_replace("\n","",$text);
$text = preg_replace("/<head[>]?>.?<\/head>/si","",$text);
$text=str_replace("\n\r","\r",$text);
$text = preg_replace("/<head[>]?>.?<\/head>/si","",$text);