[PHP] HELP - fwrite(...PHP code...)

2002-09-12 Thread Hankley, Chip
I have an application where I need to write PHP code to a file that will be used later...but it's not working the way I'd expect. When I issue the following: fwrite($fp, ? echo $LayerScale); If $LayerScale is defined, then fwrite outputs the value of $LayerScale to the target, NOT the string

Re: [PHP] HELP - fwrite(...PHP code...)

2002-09-12 Thread Chris Wesley
On Thu, 12 Sep 2002, Hankley, Chip wrote: fwrite($fp, ? echo $LayerScale); If $LayerScale is defined, then fwrite outputs the value of $LayerScale to the target, NOT the string $LayerScale. How can I overcome this? fwrite($fp, ? echo \$LayerScale); g.luck, ~Chris -- PHP