uselessinfohere "important stuff"
from the following code:
Code: Select all
$cmd = "net rpc service list -I 192.168.1.1 -U Administrator%Password";
exec($cmd, $output);
foreach ($output as $line) {
echo $line . "<br />";
}
I know how to remove the last quotation mark:
$line = substr_replace($line, "", -1);
but am unsure how to do up to the first, as each $line has a different amount of characters before the "
any help is greatly appreciated ^_^
~Tutigan