Reputation: 947
I want to integrate antivirus plugin in my code ( To check the files when users are uploading or downloading, Like yahoo mail). How do we integrate an antivirus component inside PHP? Any ideas or help would be appreciated. Thanks a bunch.
Upvotes: 9
Views: 5158
Reputation: 61467
Get yourself an antivirus that is runable from the console, and use the shell_exec function to execute it, analyse the returned output.
Upvotes: 2
Reputation: 317119
That depends on which AV solution you are using. If there is no bindings for PHP for that particular solution, you have to see if you can trigger the av check through system or exec calls.
An example of an AV solution that actually does provide bindings for usage with PHP would be
Upvotes: 5