Search found 10 matches

by maxi
Fri May 09, 2003 3:36 pm
Forum: PHP - Code
Topic: PHP to COM parameter passing
Replies: 3
Views: 582

I have the same trouble passing reference variables to a COM object which are VARIANT type.
I posted a topic in the forum "Com support for Windows" but I didn't get the expected answer.
If you get the solution, please post it to the forum.
by maxi
Fri May 02, 2003 9:06 am
Forum: PHP - Code
Topic: Com support for Windows
Replies: 4
Views: 811

Thank you very much for your collaboration.
Any way, it didn't work. Neither with $var = new VARIANT() nor $var = new VARIANT(NULL, VT_DISPATCH).
by maxi
Wed Apr 30, 2003 3:37 pm
Forum: PHP - Code
Topic: Session with objects
Replies: 8
Views: 1151

Ok, thanks you very much.
I'll see what can i do...
by maxi
Wed Apr 30, 2003 3:34 pm
Forum: PHP - Code
Topic: Com support for Windows
Replies: 4
Views: 811

It's the interface:

[id(4), helpstring("method GetQueryServer")] HRESULT GetQueryServer
( [in] BSTR ServerName, [out] VARIANTARG * QueryServer
, [out, retval] long * ErrorCode);
by maxi
Wed Apr 30, 2003 2:13 pm
Forum: PHP - Code
Topic: Session with objects
Replies: 8
Views: 1151

What I have mentioned about storing COM object in a session I got it from the manual of PHP in "FAQ: Frequently Asked Questions" -> "PHP and COM" "4. Can I store a COM object in a session ? No, you can't. COM instances are treated as resources and therefore they are only ava...
by maxi
Wed Apr 30, 2003 1:04 pm
Forum: PHP - Code
Topic: Session with objects
Replies: 8
Views: 1151

I'm trying to store a COM object in a session but I've just read that php can't store a COM object in a session. It's true? Is there any patch to fix it?
by maxi
Wed Apr 30, 2003 9:19 am
Forum: PHP - Code
Topic: Session with objects
Replies: 8
Views: 1151

I've just tried with serialize() and unserialize() and it didn't work.
I lost the reference of the object within pages using $_SESSION independently if i use serialize() or not.
by maxi
Tue Apr 29, 2003 4:04 pm
Forum: PHP - Code
Topic: Com support for Windows
Replies: 4
Views: 811

Com support for Windows

I'm using PHP 4.3.2 RC2 and Apache 1.3.7 on Windows NT Workstation 4.0. I want to use some COM objects but I have some problems with those objects that implements an interfase in which it returns another com object. For instance: page1.php <?php $arbitrer = new COM("Arbitrer.1") or die(&qu...
by maxi
Tue Apr 29, 2003 3:50 pm
Forum: PHP - Code
Topic: Session with objects
Replies: 8
Views: 1151

I forgot to say I'm working with Windows NT Workstation 4.0 (SP6) Apache 1.3.7 (I've tried with Apache 2) and PHP 4.3.2 RC2
by maxi
Tue Apr 29, 2003 3:46 pm
Forum: PHP - Code
Topic: Session with objects
Replies: 8
Views: 1151

Session with objects

I had experienced some troubbles setting an object in a variable session. I tried to do: page1.php <?php session_start(); $arbitrer = new COM("Arbitrer.1") or die("I can't create Arbitrer"); $rc = $arbitrer->Logon( $_REQUEST ["name"], $_REQUEST ["password"], $...