Argha Guha Roy
Argha Guha Roy

Reputation: 9

SAP and PHP Connection in WAMP server

I have the following code:

<?php
    include_once ("../libs/sap.php");

    $sap = new SAPConnection();
    // Params:                        hostname   sysnr
    $sap->ConnectToApplicationServer ("hostname", "sysnr");
    // Params:  client username  password  language
    $sap->Open ("client", "username","password","EN");
    $sap->PrintStatus();
    $sap->GetSystemInfo();
    echo "<BR><PRE>"; print_r ($sap); echo ("</PRE>");
    $sap->Close();
?>

I have also add the dll in php/ext folder and change the php.ini file accordingly.

DLL files are:

  1. php_saprfc_449.dll
  2. php_saprfc.dll
  3. php_saprfc_528.dll
  4. php_saprfc_528_nts.dll
  5. php_saprfc_530.dll
  6. php_saprfc_530_nts.dll
  7. php_sapnwrfc_x86.dll

But I have got the message

SAPRFC extension is not installed. Exiting....

Please suggest me for the above.

Are any changes required in SAP to enable SAPRFC?

Upvotes: 0

Views: 198

Answers (0)

Related Questions