$command = escapeshellcmd ($command); $fp = popen ('' . $command, 'r'); if ($fp) { while (!feof ($fp)) { $buf = fgets ($fp, 4096); ... ... ...