i want to create a config.inc.php file. which I am able to do. with just one problem. I can't create variables in the created PHP file.
here's what I did.
<?php
$f = fopen('config.inc.PHP' , 'w');
fwrite($f, '<?php $name = "odd";?>');
?>
the file is created fine but with an $name is an undefined variable error message and in the config.inc.PHP file u only see
<?php =" odd "; ?>. what can I do?