JudgementDay Posted February 6, 2012 Share Posted February 6, 2012 I have a PHP if() instruction. Within this if() instruction is a curl string which talks to a payment gateway. This gateway went down today, and caused my payment processing pages to hang. I am wondering if there is a way to make PHP abort a processing a instruction after a certain amount of time it runs? Link to comment https://forums.phpfreaks.com/topic/256522-making-php-abort-a-instruction-after-x-amount-of-time/ Share on other sites More sharing options...
tobimichigan Posted February 6, 2012 Share Posted February 6, 2012 if (isset($go) { ?> HTML and text here. Blah blah <a href="http://gp.com/">link</a> etc. We'll also display the results of the form, because submit has been set. <? } else { ?> Display the form - the submit button hasn't been pushed yet. <? } ?> then exit. Link to comment https://forums.phpfreaks.com/topic/256522-making-php-abort-a-instruction-after-x-amount-of-time/#findComment-1315065 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.