Go Back   CodingForums.com > :: Server side development > PHP

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 08-16-2007, 01:30 AM   PM User | #1
knightcon
Regular Coder

 
Join Date: Apr 2007
Location: Griffith. Australia
Posts: 138
Thanks: 4
Thanked 4 Times in 4 Posts
knightcon is an unknown quantity at this point
Question Virus Scanner

Hey,

What I am wanting to do is scan all files, which I upload to my server using PHP, for viruses, and if virus are detected then reject the files from being uploaded. I don't want there to be a risk to my server. I want to also integrate the same virus scanner to scan all incoming email attachments for viruses as well. The attachments when they are sent through my email server are loaded into a MySQL database in a binary field in my email attachments table. Is it possible to scan the file binaries from the database when they are entered as well using the same virus scanner as is connected to my PHP upload script.

Thanks
knightcon is offline   Reply With Quote
Old 08-16-2007, 02:29 AM   PM User | #2
rafiki
Senior Coder

 
rafiki's Avatar
 
Join Date: Aug 2006
Location: Floating around somewhere...
Posts: 2,034
Thanks: 18
Thanked 42 Times in 42 Posts
rafiki will become famous soon enough
exec()?
__________________
Get Firefox Now
rafiki is offline   Reply With Quote
Old 08-16-2007, 03:32 AM   PM User | #3
whizard
Senior Coder

 
whizard's Avatar
 
Join Date: Jan 2005
Location: Philadelphia, PA, USA
Posts: 1,457
Thanks: 10
Thanked 37 Times in 37 Posts
whizard will become famous soon enoughwhizard will become famous soon enough
hmmm... rafiki's link seems not to work... here is another attempt:

http://uk.php.net/manual/en/function.exec.php

Dan
__________________
If you want to use short tags (<? or <?=$var) then make sure short_open_tag is set to "1". It really helps.
Step 1: Learn. Step 2: Search. Step 3: Post here.
whizard is offline   Reply With Quote
Old 08-16-2007, 09:26 PM   PM User | #4
Inigoesdr
Super Moderator


 
Inigoesdr's Avatar
 
Join Date: Mar 2007
Location: Florida, USA
Posts: 3,601
Thanks: 2
Thanked 397 Times in 390 Posts
Inigoesdr is a jewel in the roughInigoesdr is a jewel in the roughInigoesdr is a jewel in the rough
If you use ClamAV(which most non-windows servers do, and some windows I think?) you can use this PHP extension(though it hasn't been updated in a while), and most e-mail servers can be integrated with Clam.
Inigoesdr is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 04:12 PM.


Advertisement
Log in to turn off these ads.