Michael Reaves 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 > Go to www.php.net/chr See what this can do for you. Certainly can help you. Regards