Hi,
Just wondering if someone could give me some help on this.
I have a form upload page with a php back end to move the file from the temp directory to a location e:\uploadedfiles.
I want to implement a virus check before moving the file but need to know how to return the code from the cli virus checker (sophos)
I assume I'll do an exec 'c:\program files\sophos\sav32cli.exe $temp_uploadname'
Here are the codes following the scan ;
SAV32CLI returns the following error codes:
0 If no errors are encountered and no viruses are found.
1 If the user interrupts the execution by pressing Esc.
2 If some error preventing further execution is discovered.
3 If viruses or virus fragments are discovered.
How would I return the codes to see if a virus is found?
Thanks.