We have a query that takes about 10 minutes to complete but it seems that PHP doesn't want to wait around for it. If the user does, PHP will respond with the actual query in plain text. No errors or anything like that are reported.
We thought it was an Apache thing, tried to configure it, didn't work, swapped over to nginx
and it still gets the same result.
I call set_time_limit(0);
at the very beginning of the script.
What is it I'm missing?
EDIT: I'd like to clarify that PHP isn't doing any computation. It's simply waiting for the result of a query from the database and then formatting the result into an Excel file.