I have a problem related to SAP B1 and PHP 5.5.30 connection. Actually I know how I can connect PHP direct to SAP B1 Database but that is not good way of connection and it's not supported. So what I need to do is to connect PHP with SAP B1 but not direct connection. in order to read and write data in the SAP database. Here is code I tried to do but the result is 0, I do know the meaning of this 0.
<?php
$mycomp = new COM("SAPbobsCOM.Company") or die("Cannot start SBO");
$mycomp->Server="192.168.0.103";
$mycomp->LicenseServer = "192.168.0.103:30000";
$mycomp->DbUserName = "sa";
$mycomp->DbPassword = "****";
$mycomp->UserName = "manager";
$mycomp->Password = "****";
?>
I have SQL server 2008, I use XAMPP for PHP and Adobe Dreamweaver for coding.
Please anyone can help me.