This is my code.
$uvscan_cmd = "/usr/local/bin/uvscan " . $_FILES['file']['tmp_name'];
$output = system("$uvscan_cmd" , $retval);
if ( $retval != 0) { print "<br>A virus was found in your file <br>$output<br>"; exit; }
This results in the following sent to the browser.
/var/tmp/phpBFaaIa Found the W32/[EMAIL PROTECTED] virus !!!
A virus was found in your file. Found the W32/[EMAIL PROTECTED] virus !!!
How can get rid of the first line and still have data $output? I tried adding a 2 > &1 to the system call and tried redirecting the output to /dev/null. This got rid of the first line but also resulted in $output not having an output.
-- Ron Clark System Administrator/Web Coordinator Armstrong Atlantic State University
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php