-2

Is there some library or way to scan for virus in PHP, when user upload a file in a web page?

Arthur Mastropietro
  • 673
  • 1
  • 7
  • 22

1 Answers1

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