On Sun, Jul 21, 2002 at 08:03:38PM +0200, Dominic wrote: > Hi all > I try to automatically process cc payment. I use online clearing via a > third party > --> so what I have to do: > 1. SSL-TCP/IP connection to this third party-server > 2. perform basic http authentication > 3. send authorization request parameters to the software (via POST or GET) > 4. receive + parse authorization response > > 1-3 is not a real problem, but how can I receive the response, before it > is printed out to the browser/screen? I know I should get the response > string into a variable so the whole procedure is "silent", but how?
Because i don't know how and with what your accessing the payment server.. A nice workaround is to use output buffering. This workaround doesn't work if your using output buffering globaly (buffering the whole page). Just do the following: ob_start(); execute some output producing functions (e.g., echo "Hello world";) $output = ob_get_content(); ob_end_clean(); Now you can simply parse the output collected in $output. Ohh, PHP-DEV isn't meant for PHP USAGE problems. It's a mailing list for PHP ENGINE related programming (Mostly C thus). Please send your questions next tim eto the php-general list. PHP-DEV: Maybe we should hide the PHP-DEV mailinglist address at the list page or change it name ;-) -- With best regards, Dave Mertens, Senior Development Manager [EMAIL PROTECTED] Innovative Solutions in Media BV Schiekade 101 3033 BG Rotterdam, Netherlands Tel. +31-10-2436060 Fax. +31-10-2436066 -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, visit: http://www.php.net/unsub.php