Skip to main content
May 26, 2011
Question

Admin Commands issue on Windows Web Server 2008 R2 - 64Bit

  • May 26, 2011
  • 1 reply
  • 509 views

Hi,

I have tried exactly same process on FMS3.5 Installed on Centos and it worked perfectly.

But not working in case of Windows Web Server 2008 R2 - 64Bit.

Here is what i am trying to do -

Basically i want to extract live streams list and display them in HTML as ordered list on another server them FMS.

What i did in the case of FMS on Centos server -

I installed Apache and PHP on this server and created a PHP file with following text in it. -

abc.php

----------------------------

   $xml = simplexml_load_file('http://<fms-server-ip>:1111/admin/getLiveStreams?auser=admin&apswd=password&appInst=live','SimpleXMLElement', LIBXML_NOCDATA);

foreach($xml->children() as $child)

  {

   foreach($child->children() as $child2)

      {

          echo $child2 . ",";

    }

      }

---------------

and in hosting server where i want to display the list i entered following code in PHP file -

$homepage = file_get_contents('http://<fms-server-ip>/abc.php');

echo $homepage;

---

i got comma seperated values easily and everything is loading fast without any issue.

Now problem occured with Windows Web Server 2008 R2 - 64Bit.

I installed FMS, Apache and PHP in this server also, did evrything in the same way like in centos.

FMS, APache and PHP files are working fine in this.

But only problem occured when in abc.php i use

$xml =  simplexml_load_file('http://<fms-server-ip>:1111/admin/getLiveStreams?auser=admin&apswd=password&appInst=live','SimpleXMLElement',  LIBXML_NOCDATA);

After this file do not loads and takes longer time to load and after some time a blank page appears. It works fine with a local XML file.

i am able to see the XML file by opening it directly in browser, but somehow this is not working with   simplexml_load_file. I dont think this is PHP issue because with local XML file it works fine. May be some port issue or something else. But i am able to view XML file directly in browser from another computers as well.

Kindly help, is there some other configurations should be changed in case of windows version. I have allowed admin commands as usual before doing all this. Ports 1111,80,1935 are also opened.

Please guide

    This topic has been closed for replies.

    1 reply

    Nikhil_Kalyan
    Participating Frequently
    May 31, 2011

    Hi,

    If you are able to view the xml result directly in the browser, then the FMS is sending you the proper response right ?

    May 31, 2011

    Hi,

    Yes in Browser, the response is perfect. The only issue is in Calling inside in any file, i even tried Javascript's XML dom to load it, but same result, the file is just loading and never loads completely. I also tried using an SWF file with AS3 code to load XML inside as3 and send the result to any JS function.

    The output comes using trace in as3, but when it comes to browser, the same loading happends and result never loads.