Like may others, not entirely familiar with some of the nice features in PHP you are typing too much. The concatenation lines can be reduced as follows: $information = ''; $information .= "<?php\n"; $information .="\$host = \$server;\n"; etc. etc. Notice the use of .= instead of $a = $a."more stuff"; Larr. --- In php-objects@xxxxxxxxxxxxxxx, "Michael Reaves" <mreaves@...> wrote: > > Group, > > > > I am trying to write a script to create in include file. I can not get the > output correct to add the <?php opening tag. Here is my code. What am I > doing wrong? > > > > $information = "<?php"; > > $information = $information."\$host='$server';\n"; > > $information = $information."\$user='$user';\n"; > > $information = $information."\$pwd='$pwd';\n"; > > $information = $information."\$dv='$db';\n"; > > $information = $informtaion."?>"; > > > > If I leave off the first line, everything works okay. > > > > Thanks for your help. > > > > Michael J. Reaves, MS, MCP > > Project Specialist > > > > > > > > [Non-text portions of this message have been removed] >