I am trying to write individual config.inc.php files for clients using fwrite(). Using the following code
$fp2=fopen("test/".$fname."/message.php", "a");
$request2 = " <?php $var1 = '$fname'; ?>"
if (!fwrite($fp2, $request2))
{ some code }
The fname var comes from a form.
The file only creates the following
<?php
= 'value of fname';
?>
The confic file will be used to provide individual db connetion for clients.
How do I solve this issue ????? It is driving me nuts and is the last step in a job I have to do.