PHP
downloads | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

mcrypt_module_close> <mcrypt_list_algorithms
Last updated: Fri, 10 Oct 2008

view this page in

mcrypt_list_modes

(PHP 4 >= 4.0.2, PHP 5)

mcrypt_list_modes サポートされる全てのモードの配列を取得する

説明

array mcrypt_list_modes ([ string $lib_dir ] )

mcrypt_list_modes() は、 lib_dir にあるサポートされる全てのモードを 取得するために使用されます。

mcrypt_list_modes() はオプションのパラメータと して全てのモードがある場所をとります。指定されない場合には、 php.ini ディレクティブの mcrypt.modes_dir の値が使用されます。

例1 mcrypt_list_modes() の例

<?php
    $modes 
mcrypt_list_modes();

    foreach (
$modes as $mode) {
        echo 
"$mode <br />\n";
    }
?>

上の例は、デフォルトのモードディレクトリにあるサポートされる 全てのアルゴリズムの一覧を出力します。ini ディレクティブの mcrypt.modes_dir でこれが設定されていない場合、mcrypt の デフォルトディレクトリ(/usr/local/lib/libmcrypt)が使用されます。



add a note add a note User Contributed Notes
mcrypt_list_modes
There are no user contributed notes for this page.

mcrypt_module_close> <mcrypt_list_algorithms
Last updated: Fri, 10 Oct 2008
 
 
show source | credits | sitemap | contact | advertising | mirror sites