Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4

Thread: Virus Scanner

  1. #1
    Regular Coder
    Join Date
    Apr 2007
    Location
    Griffith. Australia
    Posts
    138
    Thanks
    4
    Thanked 4 Times in 4 Posts

    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

  • #2
    Senior Coder rafiki's Avatar
    Join Date
    Aug 2006
    Location
    Floating around somewhere...
    Posts
    2,042
    Thanks
    19
    Thanked 42 Times in 42 Posts

  • #3
    Senior Coder whizard's Avatar
    Join Date
    Jan 2005
    Location
    Philadelphia, PA, USA
    Posts
    1,662
    Thanks
    14
    Thanked 76 Times in 76 Posts
    hmmm... rafiki's link seems not to work... here is another attempt:

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

    Dan
    PHP Tip: If you want to use short tags (<? or <?=$var) then make sure short_open_tag is set to "1". It really helps.

    Don't forget to save everyone time and mark your thread as Resolved :)

    "Also note that it is your responsibility to die() if necessary."

    DON'T USE THE MYSQL_ EXTENSION

  • #4
    Super Moderator Inigoesdr's Avatar
    Join Date
    Mar 2007
    Location
    Florida, USA
    Posts
    3,638
    Thanks
    2
    Thanked 404 Times in 396 Posts
    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.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •