note 43281 added to function.com-invoke
| From: | wladimirpazmino at yahoo dot com dot ar | Date: | Wed, 16 Jun 2004 16:41:46 +0000 |
| Subject: | note 43281 added to function.com-invoke | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-71153@lists.php.net to get a copy of this message | ||
This is a connection php-script to GoldMine
(an application wich supports COM objects) invoke is used here to execute GoldMine´s functions....
<?php
ob_start();
// Set up the database connection, and the logon stuff
$objGoldmine = new COM("GMComAPI.Application") or die("Unable to instanciate
GM");
// echo "test -";
com_propset($objGoldmine,"CommonFolder","MSSQL: GoldMine_Sales: dbo:");
com_propset($objGoldmine,"SystemFolder","c:\\\\Archivos de
programa\\Goldmine");
com_propset($objGoldmine,"GoldmineFolder","c:\\\\Archivos de
programa\\Goldmine\\GMBase");
com_propset($objGoldmine,"GMUserName","sistemas");
com_propset($objGoldmine,"GMPassword","admin");
com_propset($objGoldmine,"SQLUserName","username");
com_propset($objGoldmine,"SQLPassword","pass");
com_invoke($objGoldmine, "Login");
//presenting or executing the instruccion
$objContact1 = com_invoke($objGoldmine, "NewWorkArea", "CONTACT1");
//executing other instruccion
com_invoke($objContact1, "Top");
com_invoke($objContSupp, "Seek", $account);
//CONTACT1 inserting
com_invoke($objContact1, "Replace", "PHONE2", $phone3, 0); //Telf oficina
//com_invoke($objGoldmine, "Logout");
//header("Location: http://192.168.1.11/condado/php/admin/actudatos.php");
ob_end_flush();
?>
----
Manual Page -- http://www.php.net/manual/en/function.com-invoke.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+43281
Delete -- http://master.php.net/manage/user-notes.php?action=delete+43281&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+43281&report=yes
Search -- http://master.php.net/manage/user-notes.php