define( "ONE_DAY_SEC", 24 * 3600 );
// 日付けの差分をとる関数
function dateDiff( $date1, $date2 ) {
return ( strtotime( $date1 ) - strtotime( $date2 ) ) / ONE_DAY_SEC;
}
// 実行サンプル
$date1 = date('Y/m/d…
htmlファイルでphpを動かすための.htaccessファイルの設定
.htaccessファイル内に以下の行を記述します。
AddType application/x-httpd-php .htm .html
当然の前提条件として、htaccessの動作が許可されているサーバに限ります。
graffiti on the web
この投稿へのコメント
コメントはまだありません。