Is there some library or way to scan for virus in PHP, when user upload a file in a web page?
Asked
Active
Viewed 1,147 times
-2
-
Check out the answers to this question http://stackoverflow.com/questions/29456896/scan-uploaded-file-for-virus-in-users-machine-using-php – chrisjacob Jul 03 '15 at 20:07
-
What operating system do you wish for this to run on? – halfer Jul 03 '15 at 20:53
1 Answers
0
You could execute a command line scan, send it to a third party api to test for viruses or let an active scanner on your server handle it. It just depends on what operating system your server runs, file type and how thorough you want to be to determine the right solution.

MiltoxBeyond
- 2,683
- 1
- 13
- 12
-
OP: I'd pair this with a job server, like Gearman. You can send a signal to Gearman to start a job, which then fires up a worker (written in whatever language you like) to kick off the virus scan. – halfer Jul 03 '15 at 20:51
-
Like I said, lots of ways, just depends on personal preference/requirements – MiltoxBeyond Jul 03 '15 at 20:52