Is it possible for PHP to override the IIS query timeout on a per-call basis?

I have a PHP script that runs a number of database queries. One query is known to take a long time to run. For the call to that query only, I'd like to have the web server allow the request to run for a considerably long time.
I am using the PHP function . When this is run on Apache, the web server respects the PHP function and allows the database call to run for an extended time. With IIS, however, I was getting a
500 Internal Server error
. Turning off allowed me to get a more helpful error message, which wasThe FastCGI process exceeded configured activity timeout
.
Any number of answers on this site talk about configuring either PHP or IIS to set a longer run time for requests - but these are all global settings for the web server / PHP.
My question is: Can I facilitate allowing a longer request time for a single request, from PHP when the web server is IIS (ie. exactly as intended by
set_time_limit
)? Can you tell IIS to turn off its global time limit and respect the request coming from PHP?
Share solution ↓
Additional Information:
Link To Answer People are also looking for solutions of the problem: mark bundle as not supporting multiuse
Didn't find the answer?
Our community is visited by hundreds of web development professionals every day. Ask your question and get a quick answer for free.
Similar questions
Find the answer in similar questions on our website.
Write quick answer
Do you know the answer to this question? Write a quick response to it. With your help, we will make our community stronger.