前の記事 ≪:www.php.pl というドメイン
次の記事 ≫:AWS3.0 でスポーツカテゴリへアクセスする方法

PHPからウイルススキャン

2005年11月20日-はてなブックマーク

スポンサード リンク
[PR] 英単語を忘却曲線アプリを使って超効率よく記憶する方法
PHP ClamAV Lib

PHP ClamaAV Lib is a PHP extension (written in C) that allows to incorporate virus scanning features in your PHP scripts. It uses the Clam Antivirus API (libclamav) for virus scanning. This extension is under development and are supported functions for file scanning and buffer scanning (see functions reference). Since version 0.12 is added a layer of compatibility with the old php_clamav extension.

PHPからウイルススキャニングするPHP用エクステンション。
エクステンションをインストールすれば以下のAPIが利用可能のようです。

string cl_scanfile(string filename);
boolean cl_scanfile_ex(string filename, int options, string virusname, int retcode);
string cl_scanbuff();
int cl_scanbuff_ex(string buffer, int size_buffer, string virusname, int retcode);
string cl_pretcode(int retcode);

アップロードされたファイルをスキャンして、ということが可能になると思いますが、精度の方は分かりません。

関連の記事検索:PHP, ウイルス, antivirus, clamav
スポンサード リンク

By.KJ : 2005年11月20日 09:06 livedoor Readerで購読 Twitterに投稿

間違いの指摘をしていただける方はメール、あるいはTwitter/FBでお願いします(クリック)