使用例
//パスワード生成クラス読み込み
require_once 'My/Password.php';
//デフォルトは8桁のパスワードが生成されます
$password = My_Password::getPassword();
var_dump($password);
//『32桁、小文字英字のみ』のパスワード生成
$password = My_Password::getPassword(32, 'small');
var_dump($password);
…
linux側の設定の参考サイト
http://www.linuxmania.jp/samba_setting.html
日本語が文字化けする場合
[global]以下に次の3行を追加する
# vi /etc/samba/smb.conf
[global]
dos charset = CP932
unix charset = UTF8
display charset = UTF8
参考サイト
http://d.hatena.ne.jp/rsyudo/20070621/p1
graffiti on the web
この投稿へのコメント
コメントはまだありません。