SitePoint Sponsor |
|
User Tag List
Results 1 to 3 of 3
-
Dec 16, 2000, 10:23 #1
- Join Date
- Jul 1999
- Location
- Helena, MT
- Posts
- 287
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Hi,
I know the value "a" adds to the end of the specified file, but how do you make it so that it adds to the beginning of a file?
I remember seeing how to do this before, but I can't remember where.
I almost forgot to mention that I am talking about PHP.
Thanks!
Chris Roane
<Edited by Chris Roane on 12-16-2000 at 10:42 AM>
-
Dec 16, 2000, 11:03 #2
- Join Date
- Aug 2000
- Location
- Silicon Valley
- Posts
- 2,241
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Read the documentation of php.net:
http://www.php.net/manual/function.fopen.php
It said you could use the mode as "r+" to start writing/reading from the beginning.
Hope it helps.- Son Nguyen
AdSpeed.com - Ad Serving and Ad Management Made Easy
-
Dec 16, 2000, 11:06 #3
- Join Date
- Jul 1999
- Location
- Helena, MT
- Posts
- 287
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Thanks! I can't believe I missed that when reading that exact page.
Chris Roane
Bookmarks