Hello all,
I'm trying to setup my environment using PHP. But I encounter some problems.
I'm using a Mac Web server and I try to use my COM+ (or DCOM) library on a remote window machine.
What exactly I should do to make my PHP talk to the remote COM+ object?
Please advise.
Thank you ~
Offline
a quick google reveals nothing
I suspect that the only way is to port the library to a different format and stick it on the mac
EDIT: he's created this account just for asking this
EDIT 2: try asking around on the php forum
Last edited by muppetds (2012-03-04 02:46:19)
Offline
Well, looks like PHP can interface with com+, but there is not much documentation on remote com+ (take a look for yourself - first result is your question
)
Offline
...which makes the Scratch Forums the top result already...
Offline
Hello all,
I did search around and found no answer so I was advised to come to Scratch. I was told people here are good programmers.
One possible way is to use an window emulator installed on Mac . I tried that but still trying to figure out how to make them communicate with each other using php.... Not sure how it's done.
Offline
So why do you actually need to use the com+ library?
Offline
JJDuck wrote:
Hello all,
I did search around and found no answer so I was advised to come to Scratch. I was told people here are good programmers.
One possible way is to use an window emulator installed on Mac . I tried that but still trying to figure out how to make them communicate with each other using php.... Not sure how it's done.![]()
You can use PHP sockets for communication, but I'm not sure how well that would work. Do you mind telling me what COM+ is?
Also, I'm curious who said there were good programmers here, mind elaborating on that? ^.^
Offline
Magnie wrote:
You can use PHP sockets for communication, but I'm not sure how well that would work. Do you mind telling me what COM+ is?
Also, I'm curious who said there were good programmers here, mind elaborating on that? ^.^
In short (correct me if I'm wrong):
*********** What is COM+ *****************
COM+ is a technology developed by Microsoft and it was originated from COM.
It is like a shared library, other examples are SO(shared object), Dylibl etc .
but COM+ can be called by another machine remotely since it has security figure built in it.
[ More reading: http://en.wikipedia.org/wiki/Component_Object_Model ]
******** 3-tier structure system ************
It is widely used in enterprise because business logic is written into COM+ so that a 3-tier structure system (Client layer,Business logic layer, Data Layer) can be built for greater liability, multi-threading, fault-tolerance etc.
Besides, different programmers can work on different part of a project.
For example: a group of programmer can work on Client layer where user interface is most involved. And business logic layer programmers only expose the input and output of their functions to the Client layer engineers. so it fastens development a lot.
Furthermore, if there is a change in business process ( like add a sending out e-mail to customer after transaction), we just need to change the business layer components and no client layer is involved.
Please see link below for more pic to illustrate the concept.
[ More reading on 3-tier: http://blog.simcrest.com/what-is-3-tier-architecture-and-why-do-you-need-it/]
******* Some comment *********
COM+ is a component library in business logic layer.
Theoretically, some people say different layer can have different programming language and OS. Which is true to some extension, but connectivity is an issue here. Just like what I'm facing now.
I want Mac's fast execution for my web site users (using PHP), but all my old data and functions are left in Window system. Using ASP.NET to execute website content is just a bit dragging and hardware cost piles up.
I hope this clarify some of your doubt. If you are interested, I can post more info.
******** About the Good programmers part *********
Well....Because I'm advised by a 7 year old girl who wants to go to MIT ( in 2 years) and she is very good at programming and computers. And she told me I can MIT forum, as people here very smart and pro-active. so that's why I'm here.
p.s. I was quite worried my topic is kind of off the topic...
btw, is it possible that anyone from MIT can host a php forum? like "scratch for php by MIT" or something? it will be great.
Offline
Try using MAMP for the server:)
Offline