Hi, I finally got SAPRFC working and I wanted to share my experience for anyone who might find it usefull, since it took me a lot of searching and reading.
Software Needed
- Wampserver - It can be the latest one (Link)
- Wampserver PHP 5.1.1 Add-on - This is the version of PHP that worked for me (Link)
- Wampserver APACHE 2.0.54 Add-on - This is the version of APACHE that worked for me (Link)
- You should have SAP GUI installed, if not, you have to download the librfc32.dll file and put it in your Windows/system folder.
- And of couse SAPRFC v1.4.1-5.1.1 (Link)
Installing
- Install Wampserver, Wampserver PHP Add-on and the Wampserver APACHE addon, in that order. When all is installed, start wampserver and in the wampserver tray icon left click then go to Apache->Version->2.0.54, it should restart the service. Then do the same but PHP->version->5.1.1, and there will be another restart.
- Unzip SAPRFC to the c:/wamp/www/ folder and move the php_saprfc.dll file to c:/wamp/bin/php/php5.1.1/ext/.
- Open php.ini and add the line extension=php_saprfc.dll.
- Click on the Wampserver tray icon and restart all services.
- Check your http://localhost page and check that the saprfc appears on the loaded extensions list.
- If it doesn't appear, check you apache_error.log (You can do this left clicking on the Wampserver tray icon on Apache->Apache error log).
So this was the method I used to get SAPRFC up and running. I you know a better way, please share it. So, hope this helps!