因此,我已经按照下面的所有步骤安装了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支持,以及如何编译程序?
抱歉,我对此完全不熟悉。寻找答案。非常感谢!
发布于 2015-02-05 17:49:29
构建“窗口扩展”一般在这里解释:https://wiki.php.net/internals/windows/stepbystepbuild
还解释了哪个PHP版本需要哪个版本的VS。
我还试图在windows上为PHP5.5构建sapnwrfc扩展,但在一些part...my进度/文档中失败了:https://github.com/piersharding/php-sapnwrfc/issues/6
也许你可以更进一步:-)
https://stackoverflow.com/questions/24819151
复制相似问题