Skip to Content
author's profile photo Former Member
Former Member

Cannot get SAP / PHP to talk to each other....

I've searched the forum ( and the general world wide web) but have not found an answer.

I have php / apache and mysql working perfectly on my windows 2000 laptop - great.

i have SAP gui 620 also installed to connect to a sap 4.7 - this also works fine.

i downloaded the saprfc package and unzipped as per the instructions. i also changed my php.ini file to include the new saprfc.dll extension but when i run the example_userlist i still manage to get the following error :

Errors found during saprfc-Calls:

saprfc::callFunction()

SAPRFC-Extension.dll not loaded.

Has anyone any idea what i am doing wrong?

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

4 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Nov 16, 2005 at 05:28 PM

    What version of PHP/Apache are you running?

    Check: Installing SAPRFC PHP

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Nov 16, 2005 at 05:32 PM

    Try the following:

    1.Make sure that saprfc.dll is in the correct directory for me c:\php-5\ext.

    2. In php.ini make sure that extension_dir is set correctly. For me extension_dir = "c:\php-5\ext\"

    3.Did you restart apache after changing php.ini .

    Regards

    John

    Message was edited by: John Astill

    Message was edited by: John Astill

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Nov 17, 2005 at 11:40 AM

    The version of Apache that i am running is :

    Apache HTTP Server Version 1.3

    PHP version is 5.0.5

    My PHP is installed on my d: drive d:/personal_data/php

    my php.ini has an entry :

    extension=php_saprfc.dll

    where extension_dir = "d:\personaldata\php\ext"

    and the php_saprfc.dll file does sit in this directory.

    i restarted Apache but still no joy...

    any help would be greatly appreciated....

    thanks

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Nov 17, 2005 at 11:52 AM

    I looked at Craig's forum link again ...even though i have read this before.... and noticed that the version of SAPRFC is 5.0.4 whereas my php is 5.0.5....

    Is this where the problem lies ?

    Is there a SAPRFC for php 5.0.5 ?

    I am loathe to uninstall PHP as it was a nightmare to get it working in the first place and to be honest i don't want to break it by uninstalling an earlier version.

    Add a comment
    10|10000 characters needed characters exceeded

    • Hi Mark,

      Unfortunately it looks like you will need to downgrade (or hope for a 5.05 version of SAPRFC). The numbers need to match from SAPRFC to the PHP version.

      Hopefully your reinstall of PHP will go smoother. It is possible to have to version of PHP installed at the same time, so rather than uninstall you can install 5.0.4 and point to the correct path from your apache configuration.

      Regards

      John

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.