readme

来自「视频监控网络部分的协议ddns,的模块的实现代码,请大家大胆指正.」· 代码 · 共 91 行

TXT
91
字号
                               TCLink v3.3.1                             PHP Implementation                       copyright (C) TrustCommerce 2002                         http://www.trustcommerce.com                         developer@trustcommerce.com                               August 6, 2002I. DESCRIPTION  TCLink is a thin client library to allow your e-commerce servers toconnect to the TrustCommerce payment gateway easily and consistently.The protocol (which is the same across all platforms and languages) iswell-documented in the Web Developer's Guide, so please consult it forany questions you may have about the protocol syntax itself.  If you are using PHP on Win32, do not use this client.  Pleasedownload the COM object from the Vault website instead.  TCLink was originally ported to PHP by Andrew Barnett of Data Clarity.Thanks go to both him (for the code) and his business (for their supportof open source).II. LICENSE  TCLink for PHP is released under the GNU LGPL.  Please read LICENSEfor details.III. REQUIREMENTS  You must be running PHP 4.0.4pl1 or higher.  You need to have the OpenSSL development libraries installed.  Versionsprior to 0.9.6 may work, but are not supported; it is recommended you usethe most recent version.  Besides the normal PHP install, you'll need the php-devel package,which contains files needed for building PHP modules.  You can tellif this package is installed if the binary "phpize" is in your path. IV. BUILDING  At the root directory of this archive, execute the following:    ./build.sh  If the module builds without errors, test it with this command:    php docs/tctest.php  This script will run a test transaction and print the results.V. INSTALLATION  If you have root access to the machine, you will probably want toinstall TCLink as a global extension.  You can do this by copying themodule library (modules/tclink.so) to your PHP extensions directory(typically /usr/lib/php4).  Your extensions directory is defined by the"extension_dir" directive in php.ini.  Edit php.ini (typically found in /etc) and add the following line:    extension=tclink.so  Restart your webserver, and all PHP scripts will have access to TCLink.  If you can't or don't want to install the module system wide, you canstill load it manually in each script that needs to access it throughthe dl() call.  See the top of tctest.php for an example.VI. USAGE  The tctest.php script shows a simple example of running transactionsthrough the TCLink API.  A more complex example is contained intcexample.php.  For further information, please consult the TCDeveloper's Guide, located in the doc subdirectory.  A note to users of TCLink PHP prior to 3.3: the API has changed fromthe C-style interface, to a single tclink_send() function which acceptsa hash (associative array) of input parameters, and returns a hash withthe output parameters.  Please see the examples to update your code.

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?