File writing

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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]


[Index of Archives]     [PHP Home]     [PHP Users]     [PHP Soap]     [Kernel Newbies]     [Yosemite]     [Yosemite Campsites]

  Powered by Linux