Hey all,
i'm working on some code and i've got a little problem.
$my_file = 'file.php';
$newline = "<?php $root = '"$mylocation"/'; ?>";
file_put_contents($my_file, $newline);
As you can see i want to post a line into a file.. The problem is, this file will output:
<?php = 'your location'; ?>
the $root is gone..
Please help me.
Thanks