".$appConfig['imagesLocation'].$filename; //// // /// Scanning start // //// //Prepare directory for scanned image if(!is_dir($appConfig['imagesLocation'])) mkdir($appConfig['imagesLocation'], 777, true); //Scan image shell_exec($scanCommand); //Output scanned image name indicating that scanning finished echo $filename; ?>