Dynamically running ClamAV's clamscan on file uploads with PHP

前端 未结 3 1150
南方客
南方客 2020-12-29 11:51

Stack,

I want to scan each file that gets uploaded via my php upload script with clam anti-virus\'s clamscan tool. I think I\'ve got a good script written but I wan

3条回答
  •  南方客
    南方客 (楼主)
    2020-12-29 12:48

    Note that if your server runs a clamav daemon (clamd) it may be possible to use clamdscan instead of clamscan as proposed, this usage is faster since use virus signatures already loaded by clamd.

提交回复
热议问题