shadowayex Posted July 28, 2008 Author Share Posted July 28, 2008 It didn't change much, besides the delay between scans. But just to make sure I put it in write, here's the scan loop: for($i = 1; $i <= $numoffiles; $i++) { if($_FILES['userfile' . $i]['type'] == 'image/jpeg' || $_FILES['userfile' . $i]['type'] == 'image/gif' || $_FILES['userfile' . $i]['type'] == 'image/png') { $file = array('tmpname' => $_FILES['userfile' . $i]['tmp_name'], 'name' => $_FILES['userfile' . $i]['name']); $file['scan'] = `C:\\Progra~1\\AVG\\AVG8\\avgscanx.exe /heur /arc /scan="C:\\wamp\\tmp\\{$_FILES['userfile' . $i]['tmp_name']}" /trash`; $file_list[] = $file; } else { $results .= mysql_real_escape_string($_FILES['userfile' . $i]['name']) . ' is not a JPEG, GIF, or PNG image.'; } $string = 'Scan' . $i . '\n'; fwrite($scanlog, $string); sleep(1); } I put it in the right place, right? Do I need to make it sleep longer? Link to comment Share on other sites More sharing options...
justsomeguy Posted July 28, 2008 Share Posted July 28, 2008 You could make it sleep longer if you want, might as well be worth a test just to see if it changes or not. If sleep doesn't have an effect over the scans failing then it's another issue. Link to comment Share on other sites More sharing options...
shadowayex Posted July 28, 2008 Author Share Posted July 28, 2008 Well, that didn't work. I know it's completing the second scan, because AVG's scan log says so. That is what's confusing me the most. So somewhere between finishing the scan and loading the next line of code, it decides to hate me >_<. There's got to be something going wrong in there, but I'm not sure why it'd finish the first one fine and the second one not. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.