OpenPNE その4at PHP
OpenPNE その4 - 暇つぶし2ch933:nobodyさん
06/11/16 01:25:29
URLリンク(trac.openpne.jp)
> /etc/crontab に以下を記述。
>
> # 6時にメールを送信&20分毎にRSS更新
> 00 6 * * * root sh OPENPNE_DIR/bin/tool_send_dairy_news.cron OPENPNE_DIR/bin/ [bin_path]/php
> 00 6 * * * root sh OPENPNE_DIR/bin/tool_send_birthday_mail.cron OPENPNE_DIR/bin/ [bin_path]/php
> 00 6 * * * root sh OPENPNE_DIR/bin/tool_send_schedule_mail.cron OPENPNE_DIR/bin/ [bin_path]/php
> */20 * * * * root sh OPENPNE_DIR/bin/tool_rss_cache.cron OPENPNE_DIR/bin/ [bin_path]/php
ってあるんだけどありえなくないですか?
rootで実行させる必要ないと思います。
例えば、
<?php
$delete_dir = OPENPNE_VAR_DIR ."/img_cache/" . $target_dir;
exec("rm -rf $delete_dir");
?>
なんてコードがあって、バグで
$target_dir = " /"
とかだったりするとOSごとサヨナラですね。



次ページ
続きを表示
1を表示
最新レス表示
レスジャンプ
類似スレ一覧
スレッドの検索
話題のニュース
おまかせリスト
オプション
しおりを挟む
スレッドに書込
スレッドの一覧
暇つぶし2ch