on 12-25-2013 6:01 PM
Using below said code to connect with SBO with noluck, please help..
<?php
echo "SBO PHP TEST<br>";
$vCmp=new COM(SAPbobsCOM.company) or die ("No connection");
$vCmp->server = "(local)";
$vCmp->CompanyDB = "SBODemoIN";
$vCmp->username = "manager";
$vCmp->password = "1234";
$lRetCode = $vCmp->Connect;
echo $vCmp->CompanyName;
echo '<br>';
?>
This code is throwing following error:-
SBO PHP TEST
Fatal error: Class 'COM' not found in C:\inetpub\wwwroot\PHP\SAP\SBOtest.PHP on line 3
As i said before, this error seems to be a PHP error, not SAP error. PHP can't find COM class because COM and DOTNET is no longer built into the php core and you have to add COM support in php.ini, check in your php.ini if you have this without the semicolon:
[PHP_COM_DOTNET]
extension=php_com_dotnet.dll
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Gaurav,
OS (32 or 34 bits) ?
Version of Business One (version and 32 or 64 bits)?
DI installed (32 or 64 bits) ?
Regards,
Eric
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Maybe you should add an include or require to the COM class, there's nothing that tells PHP where is that class.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Are you sure that the COM you are using is existing?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
99 | |
9 | |
9 | |
5 | |
4 | |
3 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.