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

 
 

 

mcrypt_list_algorithms

(PHP 4 >= 4.0.2, PHP 5)

mcrypt_list_algorithms -- サポートされる全ての暗号を配列として取得する

説明

array mcrypt_list_algorithms ( string [lib_dir])

mcrypt_list_algorithms() は、 lib_dirにあるサポートされる暗号を全て取得 するために使用します。

mcrypt_list_algorithms() はオプションのパラメー タとして lib_dir をとり、全てのアルゴリズ ムがある場所のディレクトリを指定することが可能です。指定されない 場合には、php.iniディレクティブmcrypt.algorithms_dirの値が使用さ れます。

例 1. mcrypt_list_algorithms() の例

<?php
$algorithms
= mcrypt_list_algorithms ("/usr/local/lib/libmcrypt");

foreach (
$algorithms as $cipher) {
  echo
$cipher."/n";
}
?>

上記の例は、"/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.