Ask a Question related to PHP Development, Design and Development.
-
Curt Zirzow #1
Re: [PHP] Verisign PFPRO API & PHP: How to ensure hitting "STOP" in the browser will not kill the transcation
* Thus wrote e (e@osterman.com):
>
>
> I've not been able to find anywhere a good use of the pfpro
> functionality in PHP. No where do any of the scripts ensure that the
> script goes through it's full execution.
>
> One person's solution was just to exec the pfpro binary in the
> background, passing it the necessary arguments. This seems insecure.
> I'd like to use PHP's pcntl_fork(), however, I read that using it in PHP
> where PHP is an Apache module could produce unpredictable results.. Is
> anyone using pcntl_fork with the pfpro stuff in a PHP compiled as a
> module.....successfully?
You cant use pcntl_fork() within a web processes, what might be
useful:
[url]http://php.net/features.connection-handling[/url]
You'll be able to handle everything upto the point that you call
the pfpro->process function. Once that happens the payment will go
through. But if you are keeping track of results from the pfpro you
could flag the database that the user hit cancel.
What I would do instead would be to issue a ignore_user_abort(true)
and record the results in a database (since the output will not be
garenteed.) And not worry about what happens if the user does press
escape.
To be user friendly I would put a disclaimer, clearly visible, next
to the submit button 'Once pressing submit there is no turning
back', or something to that effect.
HTH,
Curt
--
"I used to think I was indecisive, but now I'm not so sure."
Curt Zirzow Guest
-
"Connection closed due to session kill"
All: I was recently called in to troubleshoot a site that has been showing all kinds of problems. One problem that just recently began showing... -
Resetting "Visited" links to "links" color when new browser opens
HELP! This should be simple, but I can't find info: In using CSS for font color for text hyperlinks, I have mine set so that the "links" are a... -
Replication - ASNCMD "DBNAME" STOP does not stop Capure
I am running DB2 version 7.2, when I execute ASNCMD dbname STOP. 8 out of ten times Capture will bring itself down. I need this to work 100% of... -
Modifying "Open Browser Window" behavior to launch a maximized browser
I want to launch a web application in a fullscreen browser window with nothing but the title bar and the accompanying window borders (I do not want... -
Anyone seen AIX 4.3 continue to let processes run even after "kill SIGKILL"?
Hey Everyone, Has anyone seen AIX 4.3 or any other AIX continue to let processes run (even if for a few moments like upto a minute or 2 minutes)... -
E #2
Verisign PFPRO API & PHP: How to ensure hitting "STOP" in the browser will not kill the transcation
I've not been able to find anywhere a good use of the pfpro
functionality in PHP. No where do any of the scripts ensure that the
script goes through it's full execution.
One person's solution was just to exec the pfpro binary in the
background, passing it the necessary arguments. This seems insecure.
I'd like to use PHP's pcntl_fork(), however, I read that using it in PHP
where PHP is an Apache module could produce unpredictable results.. Is
anyone using pcntl_fork with the pfpro stuff in a PHP compiled as a
module.....successfully?
Thanks
Erik Osterman
E Guest



Reply With Quote

