I was doing a little playing with the SDK today with some PHP. I wanted to test the sample PHP script just to see what it looked like. I copied the PHP folder from the SDK under program files over to my web folder, which by the way contained a copy of ahcmd.exe. When I tried it, it did not work for me. With some looking, I noticed that the ahcmd.exe file that was in the PHP folder was 9.00Kb in size and was version 3.0.0.159. The version that was in the c:/.../AHSDK/bin folder was 60.0Kb in size and was version 3.0.0.183. When I copied that over to my web folder, it worked like a charm.
I have written a little PHP/MySQL script that uses the queryplc command to show me a map of my house with any lights/appliances that are on. The ahcmd.exe file is what does all the work. I could be wrong, but I don't think the ahscript.dll file has any interaction with the ahcmd file. I have seen posts on here that people have changed their ahscript.dll file to version 3.0.0.200 and got things working. I have tried different versions of the .dll file and have had no change in function with my PHP script.
I did notice though that the highest version of the ahscript.dll that I have is 3.0.0.234, but the highest version of the ahcmd.exe file is 3.0.0.183. Is there an updated ahcmd file out there somewhere? Not that it matters that much because this one is working, but if there is one with more features, I am all for new features.
Dan