Re: Writing to a file
| From: | (Delbono) | Date: | Fri, 11 Aug 2000 14:28:23 +0000 |
| Subject: | Re: Writing to a file | ||
| References: | 1 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-1740@lists.php.net to get a copy of this message | ||
Do you have WRITE permission on $newHTMLfilePath file?
Nicola
----- Original Message -----
From: "Hatim" <hatim@b1.com>
To: <php-windows@lists.php.net>
Sent: Friday, August 11, 2000 12:57 PM
Subject: [PHP-WIN] Writing to a file
> Hi all, I wonder if anyone can help.
>
> I am trying to take text from a text area in a web page and write that
text
> into a file on a webserver. That didn't work so I just tried to simply
write
> a string specified below directly into the file just to see if that would
> work
>
> I am using this code but it isn't working and when I check the file it
> remains unmodified even the date last modified hasn't changed.
>
> Help would be appreciated,
>
> Thanks,
>
> Hatim.
>
>
> $newHTMLfile = fopen($newHTMLfilePath,"w+");
> fwrite($newHTMLfile, "New text to add to file.");
> fclose($newHTMLfile);
> echo "new text should be written to file.";
>
>
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-windows-unsubscribe@lists.php.net
> For additional commands, e-mail: php-windows-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>
>