Writing to text files

From: Date: Sat, 21 Oct 2000 14:32:15 +0000
Subject: Writing to text files
Groups: php.general 
Request: Send a blank email to php-general+get-21552@lists.php.net to get a copy of this message
Hi, Quick question, does anyone know how I can write $ to a text file: $text="$ade=$Name; "; $fd = fopen('text.php3', 'w'); fwrite($fd, $text); fclose($fd); The above code is working fine except it won`t write $ade=$Name(Result); It just gives me =$Name(Result) and misses off the $ade because there isn`t a value for it, but I don`t want there to be if you see what I mean. $ade value will be the result of $Name written into the text.php3 file. Sorry if I didn`t explain that very well, also do you know how to create a carriage return is it something to do with slashes?? Thanks in advance all Ade

« previous php.general (#21552) next »