ok, I got the nl2br working, but I still need to implement the str_replace. Unfortunately, flash only supports basic HTML, and it seems the FONT tag is the only way to make my header text bigger (http://www.macromedia.com/support/flash/ts/documents/htmltext.htm).
So I basically need to search for "<FONT SIZE="15">" and replace it with "<FONT SIZE="4">" or "<H3>", or something like that in my HTML docs. here is what I have with the nl2br in place :
<?
$string = "news=$news&about=$about&services=$services&process=$process&technology=$technology&portfolio=$portfolio&contact=$contact";
$fp = fopen("update.txt","w+");
$htmlstring = stripslashes ($string);
fputs($fp,$htmlstring); fclose($fp);
$htmlnews = stripslashes ($news);
$htmlnewsbr = nl2br($htmlnews);
$fp = fopen("news.htm","w+");
fputs($fp,$htmlnewsbr); fclose($fp);
$htmlabout = stripslashes ($about);
$htmlaboutbr = nl2br($htmlabout);
$fp = fopen("about.htm","w+");
fputs($fp,$htmlaboutbr); fclose($fp);
$htmlservices = stripslashes ($services);
$htmlservicesbr = nl2br($htmlservices);
$fp = fopen("services.htm","w+");
fputs($fp,$htmlservicesbr); fclose($fp);
$htmlprocess = stripslashes ($process);
$htmlprocessbr = nl2br($htmlprocesss);
$fp = fopen("process.htm","w+");
fputs($fp,$htmlprocessbr); fclose($fp);
$htmltechnology = stripslashes ($technology);
$htmltechnologybr = nl2br($htmltechnology);
$fp = fopen("technology.htm","w+");
fputs($fp,$htmltechnologybr); fclose($fp);
$htmlportfolio = stripslashes ($portfolio);
$htmlportfoliobr = nl2br($htmlportfolio);
$fp = fopen("portfolio.htm","w+");
fputs($fp,$htmlportfoliobr); fclose($fp);
$htmlcontact = stripslashes ($contact);
$htmlcontactbr = nl2br($htmlcontact);
$fp = fopen("contact.htm","w+");
fputs($fp,$htmlcontactbr); fclose($fp);
?>
I tried $htmlcontactnew=str_replace($htmlcontactbr,"=15","=4"); but this created a document that only displays "=4".........