[snip] > Anyone know what this wouldn't work? I have tried using a couple of > functions defined at http://us2.php.net/manual/en/ref.exec.php and none > seem to have the desired effect. > > <?php > $tailed = shell_exec('tail -f /path/to/log'); > //$tailed = exec('tail -f /path/to/log'); > //$tailed = system('tail -f /path/to/log'); > print = "<textarea>$tailed</textarea>"; > ?> [/snip]
Take a look at your print statement, print = "<textarea>$tailed</textarea>"; That should throw a parse error. Try print("<textarea>" . $tailed . "</textarea"); HTH! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php