Jump to content

jasemilly

Members
  • Posts

    11
  • Joined

  • Last visited

Profile Information

  • Gender
    Not Telling

jasemilly's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. I have 2 sites on my machine, one is my development site and one is third party site. The third party site has a aspx file that returns information. I have been trying access this through Jquery and Ajax but ran into a cross domain problem. Am I right in thinking I can do this is PHP? and are their any simple tutorials that someone could point me to. thanks Jasemilly
  2. Hi I am trying to connect to a program called Homeseer through homeseer and com, I am getting the following error and have no idea what it means or more importantly how to debug Call to a member function Transmit() on a non-object in D:\xampp\htdocs\HsTestControl\homeseer.php on line 8 here is a link that shows more detail on what I have tried, http://www.domoticaforum.eu/viewtopic.php?f=7&t=7323&start=15 If anyone could give me a clue into where to look to resolve this it would be very much appreciated. thanks for all thoughts and help
  3. Just wondering if anyone had any thoughts on this or could point me where to look to debug?? thanks
  4. Hi this is it <!DOCTYPE html> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title></title> </head> <body> <?php // $hs = new COM("Homeseer.Application"); $hs = new COM("homeseer.clsString"); // $hs->ExecX10("a1","off","0","0"); $status=$hs->devicestatus("A1"); echo $status; unset($hs); ?> </body> </html>
  5. You are right it should be "devicestatus", made this change but no change and i had used the Homeseer.ClsString, it shows on my system as clsString, I haven't any ideas of where to look next to debug, or what logs to check.
  6. HI Not sure this the correct section for this post, but when it works I intend for I to be AJAX based I have followed the instructions here http://cocoontech.com/portal/articles/tutorials/home-automation/16-how-to-interface-homeseer-with-php But I get the error fatal error Call to undefined method com::DeviceStatus() I am running a vista machine and apache PHP are configured ok. How do I start error trapping. I know the object is ok, as I can use it in visual studio, how does PHP know were this object is. sorry if this basic or wrong I am pretty stuck and unsure whee to begin, so thanks for any help.
  7. I am passing a domain name, I shall have a play with it's IP address and disconecting the router and turning it off, thanks!!!
  8. just playing with this function and wanting to use on my page, even when I have disconected my router from the wall socket and run the function it still returns true. I would expect it to be false. function ping($host,$port=80,$timeout=6) { $fsock = fsockopen($host, $port, $errno, $errstr, $timeout); if ( ! $fsock ) { return FALSE; } else { return TRUE; } }
  9. Hi I use the built in jquery method to call for ajax setInterval($(".ribbon-wrapper").load("php/NetWorkToolBox.php","InternetAccessTest"),0); THis is the actual error Undefined index: FuncName in C:\xampp\htdocs\wallboard\php\NetWorkToolBox.php on line 3 thanks
  10. Hi I have created my first php script with functions and using ajax the function will be called. I get a message saying error in function {main}. <?php $FuncName=$_GET["FuncName"]; if ($FuncName = "InternetAccessTest") { echo PingTest; } function PingTest() { $host = 'www.karoo.co.uk'; $up = ping($host); return ($up ? '<div class="ribbon green">OK</div>':'<div class="ribbon red">!!!</div>'); } ?> What am I doing wrong?? thanks jasemilly
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.