* Thus wrote e ([EMAIL PROTECTED]): > > > 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: http://php.net/features.connection-handling 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." -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php