I'm building a script to generate thousands of PDF pages but the memory consuming will affect the server's perfomance. As this is not a prioritary task (this generation can take hours, as long as it doesn't affect the webserver) what is the best approach for this problem?
I've seen some implementations of pthread but I would have to install also the ZTS. pthreadPHP
Don't really know if this is the right approach for my problem. Thanks all