This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2012-03-03 22:06:10

JJDuck
New Scratcher
Registered: 2012-03-03
Posts: 3

Mac PHP Web server tries to link to remote window COM+ Library

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.  smile

Thank you ~

Offline

 

#2 2012-03-04 02:45:09

muppetds
Scratcher
Registered: 2011-02-11
Posts: 1000+

Re: Mac PHP Web server tries to link to remote window COM+ Library

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)


SCRATCH'S PARTLY INSANE RESIDENT 
http://internetometer.com/imagesmall/31691.pnghttp://bluetetrarpg.x10.mx/usercard/?name=muppetds

Offline

 

#3 2012-03-04 04:10:26

rookwood101
Scratcher
Registered: 2011-07-29
Posts: 500+

Re: Mac PHP Web server tries to link to remote window COM+ Library

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  smile  )


http://i.imgur.com/zeIZW.png

Offline

 

#4 2012-03-04 04:14:37

muppetds
Scratcher
Registered: 2011-02-11
Posts: 1000+

Re: Mac PHP Web server tries to link to remote window COM+ Library

2nd result for me


SCRATCH'S PARTLY INSANE RESIDENT 
http://internetometer.com/imagesmall/31691.pnghttp://bluetetrarpg.x10.mx/usercard/?name=muppetds

Offline

 

#5 2012-03-04 04:23:33

Hardmath123
Scratcher
Registered: 2010-02-19
Posts: 1000+

Re: Mac PHP Web server tries to link to remote window COM+ Library

...which makes the Scratch Forums the top result already...


Hardmaths-MacBook-Pro:~ Hardmath$ sudo make $(whoami) a sandwich

Offline

 

#6 2012-03-04 23:30:38

JJDuck
New Scratcher
Registered: 2012-03-03
Posts: 3

Re: Mac PHP Web server tries to link to remote window COM+ Library

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.  sad

Offline

 

#7 2012-03-05 02:44:38

rookwood101
Scratcher
Registered: 2011-07-29
Posts: 500+

Re: Mac PHP Web server tries to link to remote window COM+ Library

So why do you actually need to use the com+ library?


http://i.imgur.com/zeIZW.png

Offline

 

#8 2012-03-05 09:23:20

Magnie
Scratcher
Registered: 2007-12-12
Posts: 1000+

Re: Mac PHP Web server tries to link to remote window COM+ Library

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.  sad

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

 

#9 2012-03-05 10:45:55

JJDuck
New Scratcher
Registered: 2012-03-03
Posts: 3

Re: Mac PHP Web server tries to link to remote window COM+ Library

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

 

#10 2012-03-05 22:47:47

jji7skyline
Scratcher
Registered: 2010-03-08
Posts: 1000+

Re: Mac PHP Web server tries to link to remote window COM+ Library

Try using MAMP for the server:)


I don't know why you say goodbye, I say hello!  big_smile

Offline

 

Board footer