Name)){ $webSite=new COM("IIS://localhost/w3svc/".$obj3w->Name.'/Root'); echo "[ID ] " .$obj3w->Name.'
'; echo "[NAME ] " .$obj3w->ServerComment.'
'; $state=intval($obj3w->ServerState); if ($state==2) { echo "[STATE ] running".'
'; } if ($state==4) { echo "[STATE ] stoped".'
'; } if ($state==6) { echo "[STATE ] paused".'
'; } foreach ($obj3w->ServerBindings as $Binds){ echo "[HOST ] " .$Binds.'
'; } echo "[USER ] " . $webSite->AnonymousUserName.'
'; echo "[PASS ] " . $webSite->AnonymousUserPass.'
'; echo "[PATH ] " . $webSite->path.'
'; echo "-------------------------------------------".'
'; } } ?>