note 32060 added to function.pfpro-process
| From: | php at burntpopcorn dot net | Date: | Thu, 15 May 2003 00:03:00 +0000 |
| Subject: | note 32060 added to function.pfpro-process | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-48004@lists.php.net to get a copy of this message | ||
a "drop in" replacement for pfpro_process for windows using the pfpro.exe file. It saves
having to migrate to unix for payflo support (no matter how much I want to migrate to unix) :)
doesn't support the proxy stuff because I'm not entirely sure how they work, and we
don't have a proxy so they aren't worth implementing. Good luck.
function pfpro_process($params, $server, $port, $timeout) {
$str = "";
foreach ($params as $key=>$value) {
$str .= ($str?"&":"").$key."=".$value;
}
$pfprodir = "c:\\payflo\\verisign\\payflowpro\\win32\\certs";
putenv("PFPRO_CERT_PATH=$pfprodir");
$pfret =
c:\payflo\verisign\payflowpro\win32\bin\pfpro $server $port "$str"
$timeout;
$results = array();
$keyvalues = explode("&", $pfret);
foreach ($keyvalues as $keyvalue) {
$temp = explode("=", $keyvalue);
if (count($temp) == 2) {
$results[$temp[0]] = $temp[1];
}
}
return $results;
}
--
http://www.php.net/manual/en/function.pfpro-process.php
http://master.php.net/manage/user-notes.php?action=edit+32060
http://master.php.net/manage/user-notes.php?action=delete+32060
http://master.php.net/manage/user-notes.php?action=reject+32060