Click to See Complete Forum and Search --> : Virus Scan


Shroder
07-18-2003, 01:05 AM
I'm going to be creating a script that uploads zip files. I need to scan those files for potential viruses though. I'm trying to find the best way to do this. Any ideas?

piersk
07-18-2003, 05:12 AM
Check to see if the anti-virus software you are using has a command line interface where you can specify (through parameters) which file you want to check. They use the exec() function to run the software.

If your anti-virus doesn't have this facility, then I can only suggest that you use one that at least has a real-time scanning facility. This should pick up on viruses as it scans through your files. Any anti-vrus package that is worth its salt should have this facility.

Shroder
07-18-2003, 09:44 AM
I've seen system() also for running commands. I think the difference between system() and exec() is exec doesn't give an output.
Am I right? or are there more differences?

piersk
07-18-2003, 11:30 AM
As far as I am aware, exec() executes it and doesn't give any output, and system() executes it and returns the results.