on 11-06-2008 10:23 AM
Hi,
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,
Srini.
Hi,
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,
Nihar
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
if I remember correctly, the current saprfc binary depends on msvcr90.dll. So you will have to grab and install the [redistributable package|http://www.microsoft.com/downloads/details.aspx?familyid=A5C84275-3B97-4AB7-A40D-3802B2AF5FC2] from Microsoft. I hope this will solve your problem.
Regards,
Joachim
There is solution about this?
I have sapgui 7.10 php 5.2.8
and have same error
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
i have error.log like this when starting the apache
PHP Warning: PHP Startup: Unable to load dynamic library 'D:/www/php5/ext/php_saprfc.dll' - This application has failed to start because the application configuration is incorrect. Reinstalling the application may fix this problem.\r\n in Unknown on line 0
i try to reinstall the sapgui ot work
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|http://sourceforge.net/project/showfiles.php?group_id=29190&package_id=21073]
Since there is no version for PHP 5.2.5 try the 5.2.6 version.
saprfc-1.4.1-5.2.6.Win32.zip 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,
Nigel
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.