I've been using some file functions lately for adding other contents to the original file content. however, i'd wanted to edit the content of a file lately but couldnt find the function to do dat. Is there any one of such?
i thought of using fget() to get the file content into an handle, match and preg_replace ther handle content (thus doing my editing), then overwrite the former file content with that of the handle, but still couldnt get any function to do the overwriting...
any help?
thanx.
i thought of using fget() to get the file content into an handle, match and preg_replace ther handle content (thus doing my editing), then overwrite the former file content with that of the handle, but still couldnt get any function to do the overwriting...
any help?
thanx.