PHP fwrite using variables....HELP?

  • Thread starter Thread starter ben
  • Start date Start date
B

ben

Guest
Ok, so how do I use fwrite and make it type EXACTLY what I want it to. Say, I wanted it to write this in a file called file.php.

<?php
$category = $_GET['c'];
?>

If I make it fwrite that, file.php only ends up being like this...

<?php
= $_GET['c'];
?>

the $category missing...how do I make it type in $category into the file..??

Thanks!!
 
Back
Top