How to check files for virus?

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
aliweb
Forum Newbie
Posts: 5
Joined: Tue Aug 22, 2006 1:40 am

How to check files for virus?

Post 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
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post 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.
aliweb
Forum Newbie
Posts: 5
Joined: Tue Aug 22, 2006 1:40 am

Post by aliweb »

Thanks!

I found a solution and that is ClamAV antivirus library.
Post Reply