Re: Confused about fopen r+ mode
| From: | Ignacio Vazquez-Abrams | Date: | Thu, 14 Dec 2000 15:32:18 +0000 |
| Subject: | Re: Confused about fopen r+ mode | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-30300@lists.php.net to get a copy of this message | ||
On Thu, 14 Dec 2000, Patricia Hu wrote:
> Hi list,
>
> I get confused after reading your messages and the tutorials on the r+ mode
> for the fopen() function. I quote from the book Professional PHP
> Programming: " r+ open a file for reading and writing. Data will be
> written to the beginning of an existing file". Doesn't this mean data will
> be inserted to the beginning of the file and push the original part down?
>
> Thanks for any answer.
>
> Best regards,
>
> Patricia
>
No, it will overwrite it.
--
Ignacio Vazquez-Abrams <ignacio@openservices.net>