I don't think this is possible at all, but are there any other alternatives to this? What I want to do is to write in a text file right after a HTML comment, but keeping all other information in tact.
you could always fopen and fread the file, then do a str_replace, replacing the html comment with whatever you want to write there, plus the html comment itself (either before or after the new content you just wrote, depending on exactly what you're trying to do).
this way, the html comment is always there where you need it...
Bookmarks