0

I need to stop the loading of a web page if the loading take too much time to execute the order. Basically, if the time of execution is more than 20 second, i want to stop the loading of the page and redirect the user.

I would use set_time_default well, but it don't returns value -> http://php.net/manual/fr/function.set-time-limit.php

1
  • How you are triggering order execnution? Click on link or button etc? Commented Jul 4, 2013 at 13:54

1 Answer 1

1

Basically you need a more advanced way to trap that event.

Take a look at this question, particularly Frank Farmer's brilliant answer: Php trapping maximun execution time error

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.