Was wondering if i could run a cmd command in php. I want to display the PC's system information. i know that in cmd it is C:\>systeminfo. So how can i get that in PHP. Must use shell_exec()? really lost on how to do this. this is wad i have been trying but no success.
[PHP]<?php
$cmd = 'C:\>systeminfo ';
$display = .shell_exec($cm d);
echo "$display";
?>[/PHP]
[PHP]<?php
$output = shell_exec('sys teminfo');
echo "<pre>$outp ut</pre>";
?>[/PHP]
Any help is greatly appreciated!! (:
[PHP]<?php
$cmd = 'C:\>systeminfo ';
$display = .shell_exec($cm d);
echo "$display";
?>[/PHP]
[PHP]<?php
$output = shell_exec('sys teminfo');
echo "<pre>$outp ut</pre>";
?>[/PHP]
Any help is greatly appreciated!! (:
Comment