2014-07-18 87 views
0

因此,我已經按照以下所有步驟安裝了saprfc窗口。連接PHP與SAP數據庫

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深入人心,以及如何編譯程序?

對不起,我對此完全陌生。尋找答案。非常感謝你!

回答