The FGets function, when reading a mediocre file, works extremely slowly, up to the point of freezing the client and (or) the server.
For example, create a file with more than 100,000 lines.
The problem is exactly in this place:
v_Content += v_buffer;