Page 1 of 1

php COM object

Posted: Tue Jun 08, 2004 10:29 pm
by marcelomilhomem
i have a code that connects with a COM object and i dont know what i'm doing wrong.
i think this should be correct, but dont work:

Code: Select all

$domains = $domainObj->Search($User, $Pass, , , $Reseller);
this work:

Code: Select all

$domains = $domainObj->Search($User, $Pass);
i've tried this too and dont work:

Code: Select all

$empty = new VARIANT();
$domains = $domainObj->Search($User, $Pass, $empty, $empty, $Reseller);
this code work on ASP:

Code: Select all

Set rsDomains = oDomain.Search(User, Pass, , , Reseller)
please let me know what i'm doing wrong, thanks.

Posted: Tue Jun 08, 2004 10:40 pm
by feyd
what are the arguments of Search()? i.e. what is it expecting?

Posted: Tue Jun 08, 2004 10:45 pm
by marcelomilhomem
feyd wrote:what are the arguments of Search()? i.e. what is it expecting?
it was expecting write all domains of a determinated reseller,

Search domains( with a user, pass, , , of a reseller), like this when
Search domains( with a user, pass) shows all domains, this is a COM object that connects with a SQL Server database.

Posted: Tue Jun 08, 2004 10:50 pm
by feyd
what are the COM datatypes of each argument supposed to be?

Posted: Tue Jun 08, 2004 11:04 pm
by marcelomilhomem
Search(Username, Password, , , UserAccNum, DomainName, SelectedPackageId, Status)

Posted: Tue Jun 08, 2004 11:31 pm
by feyd
what's the third and fourth arguments supposed to be?