We value your feedback.
Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!
<?php $host = "computer number"; $user = "doamin\user"; $pass = "password"; //$obj = new COM ( 'winmgmts://'. $displayasset .'/root/CIMV2' ); $wmiLocator = new COM('WbemScripting.SWbemLocator'); $obj = $wmiLocator->ConnectServer($host, 'root\cimv2', $user, $pass); // $fso = new COM ( "Scripting.FileSystemObject" ); $ipaddr = $obj->ExecQuery("SELECT IPAddress From Win32_NetworkAdapterConfiguration Where IPEnabled = True"); settype($ipaddr, "string"); echo $ipaddr; ?>
Add your voice to the tech community where 5M+ people just like you are talking about what matters.
|Use Select Query to Return Results as a Form||9||41|
code is giving warning like Warning: Cannot modify header information - headers already sent by (output started at C:\xampp\htdocs\newdom.php
|Date comparison to same 'wednesday' of previous year||3||28|