note 13698 added to function.exec.php

From: Date: Fri, 29 Jun 2001 09:18:20 +0000
Subject: note 13698 added to function.exec.php
Groups: php.notes 
Request: Send a blank email to php-notes+get-14759@lists.php.net to get a copy of this message
Under Windows NT you can retrieve a Tasklist with this script! <?php if(getenv("OS")!="Windows_NT") { echo "This script runs only under Windows NT"; } $tlist1 = shell_exec("cmd /c tlist.exe"); $tlist2 = ereg_replace(" ","&nbsp;",$tlist1); $tlist = nl2br($tlist2); echo "<font face=\"Fixedsys\">\n"; echo $tlist; echo "</font>"; ?> http://www.php.net/manual/en/function.exec.php

« previous php.notes (#14759) next »