RTC Forums

Subscription => Support => Topic started by: ISIGest on September 28, 2013, 12:05:18 PM



Title: PHP WebServer
Post by: ISIGest on September 28, 2013, 12:05:18 PM
What is the best way to use a Php web service on Linux server with and Rtc sdk?
Anyone have a simple php framework to use with RTC ?


Title: Re: PHP WebServer
Post by: D.Tkalcec (RTC) on September 28, 2013, 12:10:48 PM
What is it exactly you want to do?


Title: Re: PHP WebServer
Post by: ISIGest on September 28, 2013, 01:22:35 PM
I want manage a mySQL database with WSO2 or Slim framework using the RTC Components to send and receive data or call a custom web method.


Title: Re: PHP WebServer
Post by: D.Tkalcec (RTC) on September 28, 2013, 01:27:58 PM
How is that related to your original question about PHP?

Can you give me more details?

Are you writing a Server or a Client using RTC components?

Do you need to communicate with the PHP Server from your RTC Client or Server?

Are you writing a Server which has to forward incoming requests to an external PHP Server, then eventually process the responses and send them back to Clients (data routing), or are you writing a Windows/OSX/iOS/Android Client which has to communicate with a 3rd-party Web Service?


Title: Re: PHP WebServer
Post by: ISIGest on September 28, 2013, 03:00:05 PM
I want to write a client application with RTC that comunicate with a 3rd part php web service.


Title: Re: PHP WebServer
Post by: D.Tkalcec (RTC) on September 28, 2013, 03:05:33 PM
For that, you will use TRtcHttpClient and TRtcDataRequest components. Depending on the Server specification, you have to prepare request content before sending it out, and handle the response when you receive it. To get the basic understanding of how the RTC SDK works, please go through the Quick Start lessons and check example Projects in the QuickStart folder.

Best Regards,
Danijel Tkalcec


Title: Re: PHP WebServer
Post by: Kevin Powick on September 30, 2013, 12:30:48 AM
I want to write a client application with RTC that comunicate with a 3rd part php web service.
If you're writing a client to talk to a 3rd party web service, PHP is irrelevant.  All you need to be concerned with is the API exposed by the web service. 

I'm guessing that the web service exposes a RESTful API?  If so, as Danijel mentioned, you'll need the TRtcHttpClient and TRtcDataRequest components to send the appropriate GET, POST, PUT & DELETE requests exposed by the web service API.