[!--quoteo(post=377079:date=May 25 2006, 01:51 PM:name=nogray)--][div class=\'quotetop\']QUOTE(nogray @ May 25 2006, 01:51 PM) [snapback]377079[/snapback][/div][div class=\'quotemain\'][!--quotec--] try to add a ; after the code [code] $copy = "<?PHP"; [/code] [/quote] My apologies for not adding it, but there is a ";" after the code. I can replace that variable with any other information. However, <?, <?PHP and <% cuase problems when being used as variables. I tried slashes, trying to comment it out as I would double quotes, etc, but it's not working. I believe I've worked a way around it. I wrote the template into a separate file and instead of dumping the code into a new file, I have the script copy the file from one location to another and rename it to what I need.