hi, use this code. i slightly modified your as first line i used \n after php. last line there is spelling mistation instead information, it was $informtaion. /************ $information = "<?php \n"; $information = $information."\$host='$server';\n"; $information = $information."\$user='$user';\n"; $information = $information."\$pwd='$pwd';\n"; $information = $information."\$dv='$db';\n"; $information = $information."?>"; *****************/ balaji Chennai --- 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] >