【发布时间】:2014-07-18 07:09:04
【问题描述】:
所以,我已经按照以下所有步骤进行了saprfc windows 安装。
1) Extract zip file saprfc-$VERSION$-$PHP_VERSION$.zip
2) Copy php-saprfc.dll to your extensions directory (e.g. C:\PHP\extensions)
3) Edit php.ini file (in windows system dircetory, e.g. C:\WINNT, C:\WINDOWS)
and add line: 'extension=php_saprfc.dll'
4) Copy librfc32.dll (from SAPGUI install CD) to the windows system
directory or simple install SAPGUI on your machine.
另一位消息人士称,我们将需要 SAP SDK。 Windows真的需要它吗? 另外,是否可以在没有 SAP 程序的计算机上编写 PHP 连接到 SAP 的代码?或者我们只能在有 SAP 应用程序的计算机上进行这些安装?
那么安装之后,接下来我要做什么呢?我正在尝试执行以下步骤,但仍然感到困惑....
1) Extract php sources to C:\PHP-x.y.z
2) Extract php win support files to C:\PHP-x.y.z\win32
3) Install RFCSDK to C:\PHP-x.y.z\rfcsdk
4) Copy SAPRFC sources to C:\PHP-x.y.z\ext\saprfc
5) Copy php4ts.lib or php5ts.lib (from PHP binaries) to C:\PHP-x.y.z\win32
6) For PHP5 copy saprfc.dsp5 to saprfc.dsp
6) Open project C:\PHP-x.y.z\ext\saprfc\saprfc.dsp in Microsoft Visual C++ 6.0
7) Under Tools|Option|Directory set path for Include files and for Library files
(C:\PHP-x.y.z\win32\include; C:\PHP-x.y.z\rfcsdk\include;
C:\PHP-x.y.z\win32\lib; C:\PHP-x.y.z\rfcsdk\lib)
8) Set active configuration to "saprfc - Windows_TS" (under Build menu)
9) Build php_saprfc.dll.
10) Compiled DLL you find in C:\PHP-x.y.z\Release_TS directory
从哪里获取 PHP 源码,PHP win 支持,以及如何编译程序?
对不起,我对此完全陌生。寻找答案。非常感谢!
【问题讨论】: