473,574 Members | 2,313 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1412
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******** *************@f 14g2000cwb.goog legroups.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.goo glegroups.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.asd fg");
if($Bob->Autheticate($u sername, $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
2848
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 connections to our legacy system. Another system will call a Java object, which will communicate with a COM object, which I want then to query the...
2
1835
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 with the following script: --------------------------------------------- import win32com.client import time
3
23856
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 converted the mdb to version 2002 under MS Access XP Polish and under this version everything works OK. The problem starts when I copy the mdb file...
3
1205
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 referencing an object in another frame would be greatly appteciated. Mike
6
1048
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 Class1's properties and finally to have Form1 examine Class1 and send changes to a database. I've tried passing Class1 into a property of Form2 and...
9
1349
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 immediately. while they'll all see the new value of the variable, how do you get them each to execute a function when MajorMode changes?
1
1831
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 in the collection changes. I wanted to enable this communication without passing child objects references to their parents. Those references increase...
7
2275
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 shows messages from the service. Can I do that with remoting? What are the main steps to do that? --
6
1709
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 the micq and then act upon them. I've been using the System.Diagnostics.Process class and redirecting the input and output stream. R eading the...
0
7797
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7715
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
8041
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
8225
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7806
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
8093
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
5296
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3739
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
1
2233
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

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.