Code: Select all
$text = $_POST['links'];
$text = htmlspecialchars($_POST['links']);
$text = nl2br($text);
foreach(explode("\n",$text) as $row)
{
$result = NULL;
$command = 'the command';
exec($command,&$result);
echo $result[0]."<br>";
}
for example is there are 3 lines it print 2 blanks and 1 result...
whats wrong??