Skip to Content



I've installed XAMPP (From Apache friends). The following are the versions of different packages:

+ Apache 2.2.6

+ MySQL 5.0.51

+ PHP 5.2.5

I've unzipped the file saprfc-1.4.1-4.4.1.Win32 and copied the php_saprfc.dll to the ext and extension directories of php.

When i run saprfc_test.php test script i get the error

,,SAPRFC extension not loaded'' What could be the reason ? Is it that the saprfc.dll and PHP are incompatible and I need to build PHP on windows ?

Thanks and regards,


Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Nov 06, 2008 at 02:25 PM

    There are lots of threads on this so I would search for them first but one thing you must do is make sure you have a version of SAPRFC which matches the version of PHP you are using.

    Download the right file from [here|]

    Since there is no version for PHP 5.2.5 try the 5.2.6 version. Note the section of the file name after the 1.4.1- refers to the php version.

    Note if you are trying to do this on a NW 7 system you are stuffed. The SDK has been upgraded and the SAPRFC wont work with it. Feel free to use your C-fu to rewrite it 😉

    Hope this helps,


    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Dec 18, 2008 at 10:09 AM

    There is solution about this?

    I have sapgui 7.10 php 5.2.8

    and have same error

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Try Craig's Scripting In a Box, it has an older version of PHP but when I had the same problem like you, it worked for me.

      After I formatted my Windows partition, XAMPP and SAPRFC are working perfectly, however.

  • avatar image
    Former Member
    Jan 13, 2009 at 09:37 AM


    For removing this kind of error 3 things should be checked:

    1. The PHP_SAPRFC.dll file should be from the zip file which has the same version as PHP, Eg: If the PHP version is 5.2.5 then check the zip file for saprfc which has the same digits at the end.

    2. After extracting the DLL check the extension path from PHP.ini file containing in your folder xampp\apache\bin

    3. Add the php_saprfc.dll where the other dlls are added in INI file.

    Also you would have to install the SAPGUI.

    Enjoy Working!!!

    Best Regards,


    Add comment
    10|10000 characters needed characters exceeded