php COM object

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
marcelomilhomem
Forum Newbie
Posts: 5
Joined: Thu Feb 05, 2004 5:32 pm

php COM object

Post 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.
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

what are the arguments of Search()? i.e. what is it expecting?
marcelomilhomem
Forum Newbie
Posts: 5
Joined: Thu Feb 05, 2004 5:32 pm

Post 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.
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

what are the COM datatypes of each argument supposed to be?
marcelomilhomem
Forum Newbie
Posts: 5
Joined: Thu Feb 05, 2004 5:32 pm

Post by marcelomilhomem »

Search(Username, Password, , , UserAccNum, DomainName, SelectedPackageId, Status)
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

what's the third and fourth arguments supposed to be?
Post Reply