Installed ClamWin AntiVir today and must say it looks very good.
But its necessary for me to be able to check for viruses through clamscan.exe because I'm running it on a server which should make emails and attachments virus-free. (Yeah, added already a ClamWin logo on my webbased mail service site

)
I moved the database files into the clamwin directory because it dont wanted to work in command promt with a path like "C:\Dokumente und Einstellungen\All Users\...".
Following Problem:
When opening command line prompt and typing in
C:\Programme\ClamWin\bin\clamscan.exe C:\testfile.txt --database=C:\Programme\ClamWin\clamwin\db
it works very well and checks that testfile.txt is clean.
But when I try to execute that command with PHP like:
<?php system ("C:\Programme\ClamWin\bin\clamscan.exe C:\testfile.txt --database=C:\Programme\ClamWin\clamwin\db"); ?> |
it returns just an "empty" report which only conatains that:
----------- SCAN SUMMARY -----------
Known viruses: 0
Engine version: 0.88
Scanned directories: 0
Scanned files: 0
Infected files: 0
Data scanned: 0.00 MB
Time: 0.031 sec (0 m 0 s) |
Tried to fix that over more hours without result.
What I also tried was to put the Command into a *.bat file and to start the bat file through PHP. That returned also an "empty" report.
The same problem occures when I try to configure https://www.sssolutions.net/mf/ Server Side Solutions - Mailfilter Pro (an addon to a mail server) with ClamWin.
Hope there is a reason for this.
Thanks.
