Hello,
Hopeful this forum works by answering.
Does anyone know why the following code doesn't work any longer? I had it at work but I think some system operator has changed something in the Apache server for system settings... Is that possible and in case of yes what can be changed?
And I would like to know how to start an executable file e.g. Telnet.exe followed by IP address.
The code that was working properly is:
if (isset($POST['Submit1']))
{
$ipadr = $POST['host'];
$selected_radio = $_POST['choice'];
if ($selected_radio == 'optTracering')
{
echo 'Tracert to: ';
echo $ipadr;
echo '<br>';
$output = shell_exec("tracert.exe $ipadr");
echo "<pre>$output</pre>";
}
else if ($selected_radio == 'optPinging')
{
echo 'Ping: ';
echo $ipadr;
echo '<br>';
$output = shell_exec("ping.exe $ipadr");
echo "<pre>$output</pre>";
}
}
?>
Thanks in advance,
pbd