Re: php_com/problem with variant
| From: | Oliver Espeter | Date: | Wed, 05 Dec 2007 14:30:54 +0000 |
| Subject: | Re: php_com/problem with variant | ||
| References: | 1 2 | Groups: | php.pecl.dev |
| Request: | Send a blank email to pecl-dev+get-4945@lists.php.net to get a copy of this message | ||
>> Hi,
>> I have problems fetching data from an special database over a com-based
>> sdk.
>> With VisualBasic it's not a problem, but the same code doesn't work with
>> php.
>> So please have a look on my code. I hope I made a mistake. Otherwise
>> there
>> could be an incomatiblity between php's COM and the third-party sdk.
>
> Do you use pecl's com (and pecl4win.php.net) or the extension
> available in the php distribution?
>
> PHP5 has a com_dotnet extension which is far better than the old COM
> extension. A good tutorial is avaible here:
> http://devzone.zend.com/node/view/id/762
>
> --Pierre
Normaly we use the Oracle-Core Version from Zend.com. Following a part of
our phpinfo:
com_dotnet
COM support enabled
DCOM support disabled
.Net support not present in this build
Directive Local Value Master Value
com.allow_dcom 0 0
com.autoregister_casesensitive 1 1
com.autoregister_typelib 0 0
com.autoregister_verbose 0 0
com.code_page no value no value
com.typelib_file no value no value
So I think my testing-machine has com_dotnet support and - I hope - doesn't
use the old COM. Was thoug code possible with the old COM?
[...]
2 $comObjPi = new COM('PISDK.PISDK');
3 $server = $comObjPi->Servers->Item("123.123.123.123");
4 $server->Open("123.123.123.123;UID=foo;pwd=bar");
[...]
Your post makes me a little bit concerned. I am not to 100% certain that the
system realy uses only the new Com-System.
Regards Oliver