I want to write "$subject" into a txt file so i can later open it with a php file, and easily include the $subject
such as.
My script:
($nid is a number...)
<?php
$fi=fopen("database/$nid.txt", "w");
fwrite($fi, "$subject='subject1'; $description='description1';");
fclose($fi);
?>
However, as $subject=0 and description = 0 the product is:
='subject1' ='description 1'
(these will be variables)
but i want it to write:
$subject='subject1' $description='description 1'
So how can i write $subject into the php script without it processing it?