I am facing a problem when generating PDF document with REST API call using PHP. API returning more than 10k results but my script timed out and script can't generate the document. The REST API is for OpenSearchSever and I am using opensearchserver-php-client. For generating PDF I am using mPDF.
After some research, I find out some solution something like this
set_time_limit(0);
ini_set('memory_limit','1200M');
Is any better way to do this without script to timed out? Thanks :)