note 15886 added to ref.pfpro

From: Date: Sat, 06 Oct 2001 22:05:13 +0000
Subject: note 15886 added to ref.pfpro
Groups: php.notes 
Request: Send a blank email to php-notes+get-18649@lists.php.net to get a copy of this message
PART2 --------------------- /* You have the choice of either setting your Defaults within this script (the default), or pulling the defaults from the PHP.INI file. Set $READ_PHP_INI to 0 (zero) to define the constants within this script, or 1 (one) to grab the constants from the PHP.INI file. FYI: The php_pfpro.dll extension pulls the info from the PHP.INI file only! Just remember, if you decide to set your constants within this script, when you move to the extension, you'll have to make the necessary changes in the PHP.INI file. */ $READ_PHP_INI = 0; /* Define Constants Here Pull Constants from PHP.INI -------------------------- --------------------------- */ define(pfpro_defaulthost, ($READ_PHP_INI == 0) ? 'test-payflow.verisign.com' : get_cfg_var('pfpro.defaulthost')); define(pfpro_defaultport, ($READ_PHP_INI == 0) ? 443 : get_cfg_var('pfpro.defaultport')); define(pfpro_defaulttimeout, ($READ_PHP_INI == 0) ? 30 : get_cfg_var('pfpro.defaulttimeout')); define(pfpro_proxyaddress, ($READ_PHP_INI == 0) ? NULL : get_cfg_var('pfpro.proxyaddress')); define(pfpro_proxyport, ($READ_PHP_INI == 0) ? NULL : get_cfg_var('pfpro.proxyport')); define(pfpro_proxylogin, ($READ_PHP_INI == 0) ? NULL : get_cfg_var('pfpro.proxylogin')); define(pfpro_proxypassword, ($READ_PHP_INI == 0) ? NULL : get_cfg_var('pfpro.proxypassword')); define(PFPRO_EXE_PATH, 'C:\Verisign\payflowpro\win32\bin\pfpro.exe'); function pfpro_init() { /* This function is here for compatibility only. Returns NULL (nothing) */ return(NULL); } function pfpro_cleanup() { /* This function is here for compatibility only. Returns NULL (nothing) */ return(NULL); } function pfpro_version() { @exec(PFPRO_EXE_PATH, $result); $version = substr($result[0], strlen($result[0])-4, 4); return($version); } /* continued on next thread (below) */ -- http://www.php.net/manual/en/ref.pfpro.php http://master.php.net/manage/user-notes.php?action=edit+15886 http://master.php.net/manage/user-notes.php?action=delete+15886 http://master.php.net/manage/user-notes.php?action=reject+15886

« previous php.notes (#18649) next »