Page 1 of 1

How to check files for virus?

Posted: Tue Nov 28, 2006 2:21 am
by aliweb
Hello,

I have an application in PHP where users upload different files to server.

Q1. Is there a way I can check those files for virus when user uploads?
Q2. If a virus is found in some file, how can I display message to the user?
Q3. Let's say if I have a dedicated server with antivirus installed, what do I need to do to integrate it with PHP?
Q4. Can this be done on shared hosting environment?

Thanks

Posted: Tue Nov 28, 2006 7:34 am
by feyd
  1. Yes
  2. echo()
  3. That would depend on how the antivirus software is interacted with and how much access your host provides
  4. That is a discussion between you and your provider.

Posted: Tue Nov 28, 2006 8:21 am
by aliweb
Thanks!

I found a solution and that is ClamAV antivirus library.