今週の運勢
date_default_timezone_set('Asia/Tokyo');
$today = date("Y/m/d");
$day6ago = date("Y/m/d", strtotime("$today -6 day"));
$file01 = file('/home/amodova/www/client/tsukiryuka/unsei/data/01.dat');
$file01 = str_replace(array("\r\n","\n","\r"), '', $file01);
$fday01 = $file01[0].'/'.$file01[1].'/'.$file01[2];
$file02 = file('/home/amodova/www/client/tsukiryuka/unsei/data/02.dat');
$file02 = str_replace(array("\r\n","\n","\r"), '', $file02);
$fday02 = $file02[0].'/'.$file02[1].'/'.$file02[2];
$file03 = file('/home/amodova/www/client/tsukiryuka/unsei/data/03.dat');
$file03 = str_replace(array("\r\n","\n","\r"), '', $file03);
$fday03 = $file03[0].'/'.$file03[1].'/'.$file03[2];
$file04 = file('/home/amodova/www/client/tsukiryuka/unsei/data/04.dat');
$file04 = str_replace(array("\r\n","\n","\r"), '', $file04);
$fday04 = $file04[0].'/'.$file04[1].'/'.$file04[2];
$file05 = file('/home/amodova/www/client/tsukiryuka/unsei/data/05.dat');
$file05 = str_replace(array("\r\n","\n","\r"), '', $file05);
$fday05 = $file05[0].'/'.$file05[1].'/'.$file05[2];
$file06 = file('/home/amodova/www/client/tsukiryuka/unsei/data/06.dat');
$file06 = str_replace(array("\r\n","\n","\r"), '', $file06);
$fday06 = $file06[0].'/'.$file06[1].'/'.$file06[2];
$file07 = file('/home/amodova/www/client/tsukiryuka/unsei/data/07.dat');
$file07 = str_replace(array("\r\n","\n","\r"), '', $file07);
$fday07 = $file07[0].'/'.$file07[1].'/'.$file07[2];
$file08 = file('/home/amodova/www/client/tsukiryuka/unsei/data/08.dat');
$file08 = str_replace(array("\r\n","\n","\r"), '', $file08);
$fday08 = $file08[0].'/'.$file08[1].'/'.$file08[2];
if(strtotime($fday01) >= strtotime($day6ago) and strtotime($fday01) <= strtotime($today)){$file = file('/home/amodova/www/client/tsukiryuka/unsei/data/01.dat');};
if(strtotime($fday02) >= strtotime($day6ago) and strtotime($fday02) <= strtotime($today)){$file = file('/home/amodova/www/client/tsukiryuka/unsei/data/02.dat');};
if(strtotime($fday03) >= strtotime($day6ago) and strtotime($fday03) <= strtotime($today)){$file = file('/home/amodova/www/client/tsukiryuka/unsei/data/03.dat');};
if(strtotime($fday04) >= strtotime($day6ago) and strtotime($fday04) <= strtotime($today)){$file = file('/home/amodova/www/client/tsukiryuka/unsei/data/04.dat');};
if(strtotime($fday05) >= strtotime($day6ago) and strtotime($fday05) <= strtotime($today)){$file = file('/home/amodova/www/client/tsukiryuka/unsei/data/05.dat');};
if(strtotime($fday06) >= strtotime($day6ago) and strtotime($fday06) <= strtotime($today)){$file = file('/home/amodova/www/client/tsukiryuka/unsei/data/06.dat');};
if(strtotime($fday07) >= strtotime($day6ago) and strtotime($fday07) <= strtotime($today)){$file = file('/home/amodova/www/client/tsukiryuka/unsei/data/07.dat');};
if(strtotime($fday08) >= strtotime($day6ago) and strtotime($fday08) <= strtotime($today)){$file = file('/home/amodova/www/client/tsukiryuka/unsei/data/08.dat');};
$file = str_replace(array("\r\n","\n","\r"), '', $file);
$startdate = $file[0].'/'.$file[1].'/'.$file[2];
$startdatej = $file[0].'年'.$file[1].'月'.$file[2].'日';
$enddate = date("Y/m/d/", strtotime("$startdate +6 day"));
$enddatej = date("Y年m月d日", strtotime("$startdate +6 day"));
$startdatei = $file[1].'/'.$file[2];
$enddatei = date("m/d", strtotime("$startdate +6 day"));
?>
【 echo $startdatei; ?>- echo $enddatei; ?>】
1月生
2月生
3月生
4月生
5月生
6月生
7月生
8月生
9月生
10月生
11月生
12月生
|戻る|