COM doesn't run

Forum for you who has PHP installation issues

Moderators: macek, egami, gesf

Ilya
New php-forum User
New php-forum User
Posts: 17
Joined: Sat Aug 02, 2003 4:47 am
Location: Saransk, Russia
Contact:

COM doesn't run

Postby Ilya » Fri Feb 11, 2005 5:44 am

I write an application that calls COM objects from PHP and I've used a small package Denwer for its debugging. Now came its deployment and it was installed a standard PHP package that integrates with IIS to run on a server. The standard PHP function executes successfuly but COM objects calling failes. Appers "'com_exception' with message 'Parameter 1: Type mismatch" in string
$objU = new COM ("Deans_Project.User");
Tell me please how to make working COM objects calls.

User avatar
WiZARD
Moderator
Moderator
Posts: 1257
Joined: Thu Jun 20, 2002 10:14 pm
Location: Ukraine, Crimea, Simferopol
Contact:

Re: COM doesn't run

Postby WiZARD » Fri Feb 11, 2005 7:17 am

Ilya wrote:I write an application that calls COM objects from PHP and I've used a small package Denwer for its debugging. Now came its deployment and it was installed a standard PHP package that integrates with IIS to run on a server. The standard PHP function executes successfuly but COM objects calling failes. Appers "'com_exception' with message 'Parameter 1: Type mismatch" in string
$objU = new COM ("Deans_Project.User");
Tell me please how to make working COM objects calls.

maybe better use like in manual?
<?php
$domainObject = new COM("WinNT://Domain");
while ($obj = $domainObject->Next()) {
echo $obj->Name . "<br />";
}
?>

Ilya
New php-forum User
New php-forum User
Posts: 17
Joined: Sat Aug 02, 2003 4:47 am
Location: Saransk, Russia
Contact:

Postby Ilya » Mon Feb 14, 2005 3:18 am

This code makes no result, just
Fatal error: Uncaught exception 'com_exception' with message 'Source: Active Directory
Description: Unrecognized error ' in E:\Deans\web\_testcom.php:3 Stack trace: #0 {main} thrown


Return to “PHP Installation”

Who is online

Users browsing this forum: No registered users and 1 guest

cron