I want to use a php script to write to a file.
Let's say I want it to write
<?php
$fruit = "apple";
echo = " I like $fruit";
?>
How can i do that using t fputs command? Remember, I want the php tags ( <? , ?> ) to be included in the file i'm writing to.
Thanks.