Anyone built PHP client? (1 Viewer)

jameson_uk

Retired Team Member
  • Premium Supporter
  • January 27, 2005
    7,258
    2,528
    Birmingham
    Home Country
    United Kingdom United Kingdom
    Currently I have a PHP script on my NAS box to wake my HTPC from sleep and the self-contained web-server setup which works ok but is not ideal.

    I would like to install the front end on my Linux NAS box as PHP scripts (would obviously need the WOL stuff still to wake the HTPC first) as this would only require me to expose my NAS box to internet and not my HTPC.

    I guess this is not too difficult to do as the hard work has already been done :) and it is just a case of making a few SOAP calls.

    Before I start to play about this with I was just wondering if anyone has already done this??
     

    johnq

    New Member
    April 18, 2008
    2
    0
    PHP has a built in SOAP extension.

    Enable this in php.ini (on windows, remove the ; in the line ;extension=soap.dll)
    Restart webserver

    Then you can very easily acces the SOAP commands:

    For example get all channels in a group.
    PHP:
    <?php
    $client = new SoapClient("http://<TVserverURL>:8081/TvServiceWebServices.asmx?WSDL");
    
    var_dump( 
       $client->GetChannelsInTvGroup(
             array('idGroup' => 2)
        ) 
    );
    ?>

    See all possible commands and their options here: http://<TVserverURL>:8081/TvServiceWebServices.asmx
     

    jameson_uk

    Retired Team Member
  • Premium Supporter
  • January 27, 2005
    7,258
    2,528
    Birmingham
    Home Country
    United Kingdom United Kingdom
    PHP has a built in SOAP extension.
    Understand all that just wanted to check I was not going to re-invent the wheel. It is not so much the SOAP side of things it was more a whole PHP application to enable recordings from over t'interweb.

    If I ever get chance I will try and knock something up just did not want to re-invent the wheel.
     

    Users who are viewing this thread


    Write your reply...
    Top Bottom