1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61
|
php-clamavlib for Debian
------------------------
The php-clamavlib is installed under the php library directory.
If you use the debconf feature of this package, you don't need to edit the
php.ini manually!
--------------------
To enable this library open your php.ini configfile in /etc/php/ and add the following:
-------------------------
extension=clamav.so
[clamav]
clamav.dbpath="/var/lib/clamav"
clamav.maxreclevel=0
clamav.maxfiles=0
clamav.archivememlim=0
clamav.maxfilesize=0
clamav.maxratio=0
-------------------------------------
ClamAV Lib PHP Funktions:
-----------------------
string cl_info();
Description:
Print Version information.
Parameters:
None.
Return value:
Returns the clamAV version.
string cl_scanfile(string filename)
Description:
Scan a file given filename.
Paramenters:
filename: the absolute/realtive path to the file.
Return value:
Returns the name of the virus if this is found and rreturns null when no virus is found.
string cl_scanfile_ex(string filename, int options, string virusname, int retcode);
Description:
Scan a file given a filename (extended version), it supports the ClamAV scanning options and returns the virusname and return code of the 'cl_scanfile()' API function.
Parameters:
filename: the absolute / relative path to the file.
options: ClamAV scanning options.
virusname: This parameter is used to retrieve the virusname if a virus was found.
retcode: This parameter is used to retrieve the return code of the cl_scanfile API function.
string cl_pretcode(int retcode);
Description:
Translates the ClamAV return code.
Parameters:
retcode: The return code of a cl_scanfile_ex(filename, options, virusname, retcode) or
cl_scanbuff_ex(buffer, size_buffer, virusname, retcode) function
Return value:
Returns a string with the return code description.
Compatibility functions:
string clam_scan_file(string filename);
string clam_get_version()
-- Jonas Genannt <jonas.genannt@capi2name.de>, Wed, 31 Aug 2005 19:36:01 +0000
|