How to configure the handling of large text files on the server using php?
There is a script for podscheta words in the text, written in php.
Users will download the lyrics and get statistics of text.
Checked large texts are processed quite quickly, up to 2-5 seconds. The use of memory in the largest test text was 400 megabytes.
The question is how to configure the handling of files on the server. If 10 users simultaneously send texts for processing, memory is not enough.
Do I need 2 servers? One for site and one for word processing?
You need to write and configure a php daemon, which for example will keep track of downloaded files, obrabatyvat new and delete is processed?