Re: Writing to text files
| From: | Mukul Sabharwal | Date: | Sat, 21 Oct 2000 15:02:21 +0000 |
| Subject: | Re: Writing to text files | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-21560@lists.php.net to get a copy of this message | ||
$text = '$ade=$Name;";
or
$text = "\$ade=\$Name;";
Is this what you wanted ?
--- Website4S@aol.com wrote: > 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
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail:
> php-general-unsubscribe@lists.php.net
> For additional commands, e-mail:
> php-general-help@lists.php.net
> To contact the list administrators, e-mail:
> php-list-admin@lists.php.net
>
=====
To Find Out More About Me : http://mukul.tsx.org/
__________________________________________________
Do You Yahoo!?
Yahoo! Messenger - Talk while you surf! It's FREE.
http://im.yahoo.com/