moving the pointer after using fopen

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
jiop
Forum Newbie
Posts: 11
Joined: Wed Dec 18, 2002 4:00 am
Location: newport beach

moving the pointer after using fopen

Post by jiop »

hello all, i am trying to append text to an existing file, but i want to append the text to the beginning of the file after opening the file handler using fopen("filename", a+);

how would i move the file pointer the the beginning of the file?
User avatar
Takuma
Forum Regular
Posts: 931
Joined: Sun Aug 04, 2002 10:24 am
Location: UK
Contact:

Post by Takuma »

Why not use "w+" instead of "a+".

Well here's the function:-

fseek
Post Reply