473,322 Members | 1,493 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,322 software developers and data experts.

PHP communicating to a COM object

Have a client requirement for a cms system, which I am proposing to be
done with a PHP open source system (phpwcms). The client already has a
client login authentication script running off of a customized
windows-based COM object. Is it possible for PHP to communicate with
this object (which will return session variables)... making them
available to other PHP-based scripts relying on sessions.

Anyone with experince at this (if doable) would be willing to work
with, within the scope of this project (at approval stage right now)
Cheers,
John

- first post here -

Jul 17 '05 #1
5 1403
jsw_nz wrote:
Have a client requirement for a cms system, which I am proposing to be
done with a PHP open source system (phpwcms). The client already has a
client login authentication script running off of a customized
windows-based COM object. Is it possible for PHP to communicate with
this object (which will return session variables)... making them
available to other PHP-based scripts relying on sessions.

Anyone with experince at this (if doable) would be willing to work
with, within the scope of this project (at approval stage right now)
Cheers,
John

Oh, its absolutely doable:

http://no2.php.net/manual/en/ref.com.php
I've had several clients requesting interaction with and tasks performed
via COM, it's not that hard to get working, read the manual and do some
experimenting. You'll have it in a few days.

--
Thomas

SELECT date FROM wife WHERE bitching = '0' AND sex = '1'
Jul 17 '05 #2

"jsw_nz" <js***@xtra.co.nz> wrote in message
news:11*********************@f14g2000cwb.googlegro ups.com...
Have a client requirement for a cms system, which I am proposing to be
done with a PHP open source system (phpwcms). The client already has a
client login authentication script running off of a customized
windows-based COM object. Is it possible for PHP to communicate with
this object (which will return session variables)... making them
available to other PHP-based scripts relying on sessions.

Anyone with experince at this (if doable) would be willing to work
with, within the scope of this project (at approval stage right now)
Cheers,
John

- first post here -


PHP does support COM. Be sure to load test the system though, because it has
a way of leaking memory.
Jul 17 '05 #3
Chung Leong wrote:

PHP does support COM. Be sure to load test the system though, because
it has
a way of leaking memory.

Hello Chung and Thomas,

Thanks both for your replies....in a quandry however, since your
answers differ. My thinking would be there may be some
workaround/translation layer to get php to instantiate the COM and get
results based on successful login...either the session variables set
directly by COM (readable by php?) or on the other hand an object sent
back to php, having the session variables instantiated there....your
thoughts...

Cheers,
John

Jul 17 '05 #4
Hello Chung and Thomas,

Thanks both for your replies....My thinking would be there may be some
workaround/translation layer to get php to instantiate the COM and get
results based on successful login...either the session variables set
directly by COM (readable by php?) or on the other hand an object sent
back to php, having the session variables instantiated there...any
additional insights appreciated here. Can session variables be created
from COM environment and be read by php?

All best, John

Jul 17 '05 #5
"jsw_nz" <js***@xtra.co.nz> wrote in message
news:11**********************@z14g2000cwz.googlegr oups.com...
Chung Leong wrote:

PHP does support COM. Be sure to load test the system though, because
it has
a way of leaking memory.

Hello Chung and Thomas,

Thanks both for your replies....in a quandry however, since your
answers differ. My thinking would be there may be some
workaround/translation layer to get php to instantiate the COM and get
results based on successful login...either the session variables set
directly by COM (readable by php?) or on the other hand an object sent
back to php, having the session variables instantiated there....your
thoughts...

Cheers,
John


Presumably there would be a method on the object that return some kind of
value. Based on that value you set a session variable in PHP to indicate
that the user has logged in successfully. Something like the following

$Bob = COM("qwerty.asdfg");
if($Bob->Autheticate($username, $password)) {
$_SESSION['login'] = true;
}
Jul 17 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Michael Williams | last post by:
Hi, I am trying to create a VB6 application which can act as a 'connection broker' for other applications being run on the same machine. Essentially, the broker app will setup a number of...
2
by: Eric Brunel | last post by:
Hi all, We're trying to communicate with Microsoft Visual C++ 6.0 via COM to make it perform a few operations. Our main need is to set a breakpoint on a given line in a given file. We ended up...
3
by: Stan | last post by:
Hallo, I have developed an application in MS Access 2000 (Polish version) under MS Windows XP prof (also Polish). Now I would like to run this code on MS Windows XP EN and MS Access XP EN. I have...
3
by: Mike Grainger | last post by:
Good Day: I am attempting to reference the value in a dropdownlist in the contents frame from the main frame and use it for filtering od a dataview. I get object is null. Any help on...
6
by: PaulN | last post by:
I need to instantiate a class (Class1) in the startup form (Form1), set some of Class1's properties then open another form (Form2) and have it read Class1's properties and set the remainder of...
9
by: lou zion | last post by:
hey all, i've got a class that A that has a static class member static int MajorMode; it's important that if one instance of the class changes this variable, all instances react...
1
by: David Veeneman | last post by:
This posting is for the Google crawler and requires no response. I have created a multi-level object hierarchy, in which the root object needs to be notified whenever any property of any object...
7
by: Diego F. | last post by:
Hello. I have a windows service running that listens to a port and makes insert queries in a database. I need to make an interface, so my idea is creating a simple windows application that just...
6
by: dolulob | last post by:
Hi, I'm trying to communicate with a console application through a c# program. the console application is micq a console based ICQ client. I want to be able to send an receive messages through...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.