For part of my website I need to be able to write php code to a file with php. For example:
$filename = \"RtestR.php\"; $ourFileName =$filename; $ourFileHand
It seems relevant to mention php's HEREDOC in this context, e.g.:
I like the color ={$cleanSessionVars[ 'color' ]};?>. FILE_CONTENTS; fwrite($ourFileHandle, $write); fclose($ourFileHandle);