Wrox Home  
Search P2P Archive for: Go

  Return to Index  

pro_php thread: php working with coldfusion


Message #1 by "mike" <honeyfield@m...> on Fri, 18 Jan 2002 01:33:10
What about using XML-RPC or SOAP to communicate between the applications?
Have the ColdFusion app provide an API via XML-RPC or SOAP and the PHP
application utilizes it via an XML-RPC or SOAP client.  I know both PHP and
ColdFusion support XML-RPC for sure.  Check out this list for
implementations:

http://www.xmlrpc.com/directory/1568/implementations

This is exactly what protocols like XML-RPC and SOAP were designed for :)
Interop between different systems.

Joshua Hoover

> The cfm page spits out HTML, right?
> 
> To pass variables, you could use fopen with the URL and build a query string
> and append it to the url.
> 
> So let's build a hypothetical application to make sure I understand
> correctly.
> 
> Let's say you have addition.cfm.  It takes two parameters: num1 and num2.
> The cfm app adds them together and displays the result.
> 
> you could have the php page do this:
> 
> wait a minute ... To send a query string, does it have to be via POST
> method?  Fopen does it via GET.
> 
> If someone can verify for me first, I can see if I should go back to the
> example.
> 
> Adam Lang
> Systems Engineer
> Rutgers Casualty Insurance Company
> http://www.rutgersinsurance.com
> ----- Original Message -----
> From: "mike" <honeyfield@m...>
> To: "professional php" <pro_php@p...>
> Sent: Saturday, January 19, 2002 2:43 AM
> Subject: [pro_php] Re: php working with coldfusion
> 
> 
>> Ok basically on the coldfusion server there will be an application runnig.
>> we will call it foo. Now my boss has ask to write a php interface to that.
>> Eg: in the php script i need to call somepage.cfm( I have found that fopen
>> can help here) and pass variables to the someapp.cfm using php. Also i
>> need to be able to retrive the results of someapp.cfm and then use it in
>> the php interface. I am sorry if this i like 101 stuff, but i could not
>> find my problem else where on the net.
>> 
>> Many Thanks
>> 
>> Mike
>> 
>> 
>> 
>> 
>> 
>> 
>>> I have never interacted with a cold fusion server.  Could you please
>> give a
>>> bit of details how it works?
>>> 
>>> Worse case scenario is you can write a php script using sockets and
>> connect
>>> to the coldfusion server over the appropriate port, handle whatever
>>> handshakes and such are needed and then get back result, spit it out,
> and
>>> then close socket.  But that is worse case scenario.
>>> 
>>> Adam Lang
>>> Systems Engineer
>>> Rutgers Casualty Insurance Company
>>> http://www.rutgersinsurance.com
>>> ----- Original Message -----
>>> From: "mike" <honeyfield@m...>
>>> To: "professional php" <pro_php@p...>
>>> Sent: Friday, January 18, 2002 1:33 AM
>>> Subject: [pro_php] php working with coldfusion
>>> 
>>> 
>>>> hello all,
>>>> 
>>>> I have a minor problem :). I need to build a php engine that can
>> retrive
>>>> results based on coldfusion querys. Now before you all ask why the
>> reason
>>>> is the database is on an internel network and the coldfusion server in
>> a
>>>> dmz. Now, the client doesnt want to allow access to the db but for the
>>>> coldfusion server only. So my question is can this be done and where
>> might
>>>> i find the info. the php doesnt(not that i could find) outline
> anything
>>>> like this.
>>>> 
>>>> 
>>>> many thanks
>>>> 
>>>> Michael
> $subst('Email.Unsub').
>>>> 
>>> 
>>> 
>>> 
>> 
>> 
> 
> 
> 
> 


  Return to Index