Jump to content

Making PHP abort a instruction after X amount of time


JudgementDay

Recommended Posts

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?

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.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.