write php code to a text file
Posted: Sun Jan 19, 2003 4:22 am
Hi, I'm need to write the actual var name ($num) to a text file and not its value.
Here is the script I got so far:
And then I just simply put $writestring into the .php file. So how do I actually get $num to show up in the script and not its value?
Here is the script I got so far:
Code: Select all
$writestring = "<?php \n $num = " . $num2 . "\n $numred = " . $numred2 . "\n $numgreen = " . $numgreen2 . "\n $numblue = " . $numblue2 . "\n $numyellow = " . $numyellow2 . "\n $numpurple = " . $numpurple2 . "\n ?>";