Home :: International :: Manuals :: Howto :: FAQ :: Man Pages :: Email Login

 
 

 

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/>";
}
?>

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

 
 
 
 
Google
  Web Linuxinfor   
 

Home :: Copyright :: Privacy :: Credits :: Get a free Linuxinfor Email Account

Document on this page is part of "PHP マニュアル". See Index Page for more info about Authorship and Copyright.

1999-2009 Linuxinfor.com. No rights reserved.