ID: 25999 Updated by: [EMAIL PROTECTED] Reported By: yunlan at mail dot eestart dot com -Status: Open +Status: Bogus Bug Type: COM related Operating System: Microsoft window server 2003 PHP Version: 4.3.4RC2 New Comment:
Sorry, but your problem does not imply a bug in PHP itself. For a list of more appropriate places to ask for help using PHP, please visit http://www.php.net/support.php as this bug system is not the appropriate forum for asking support questions. Thank you for your interest in PHP. I suspect you want to call methods of the com object. eg. $com->FETCHNEXT(); likes like a great example of dumb syntax in ASP :) Previous Comments: ------------------------------------------------------------------------ [2003-10-27 04:51:36] yunlan at mail dot eestart dot com Description: ------------ ASP code: <% Set RS = Server.CreateObject("visualphd.data") RS.HOSTNAME="APP22" RS.TAGS.ADD "TIC1101.PV" RS.SAMPLEFREQUENCY = 60 RS.SAMPLEMETHOD="SNAPSHOT" RS.STARTTIME="NOW" RS.ENDTIME="NOW" RS.FETCH response.write(rs.tags("TIC1101.PV").VALUE) response.write("<br>") response.write(rs.tags("TIC1101.PV").timestamp) response.write("<br>") response.write(rs.tags("TIC1101.PV").CONFIDENCE) %> Reproduce code: --------------- I had Converted to php code: <? $obj = new COM("VisualPHD.Data"); $obj->HOSTNAME="APP22"; $obj->TAGS->ADD("TIC1101.PV"); $obj->SAMPLEFREQUENCY = 60; $obj->SAMPLEMETHOD="SNAPSHOT"; $obj->STARTTIME="NOW"; $obj->ENDTIME="NOW"; $obj->MoveFirst; $obj->FETCH; print_r($obj->TAGS["TIC1101.PV"]->VALUE); print_r("<br>"); print_r($obj->TAGS["TIC1101.PV"]->timestamp); print_r("<br>"); print_r($obj->TAGS["TIC1101.PV"]->CONFIDENCE); $obj=null; ?> I don't know it is right that from "RS.TAGS.ADD \"TIC1101.PV\"" to "$obj->TAGS->ADD("TIC1101.PV");"? Expected result: ---------------- Expected result is so such: 10.0 2003-10-27 17:40:50 100% Actual result: -------------- Actual result: 0 0 0 I hope you to help me. [EMAIL PROTECTED] ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=25999&edit=1